Skip to content
Commit a2e98a94 authored by dharjeezy's avatar dharjeezy Committed by GitHub
Browse files

Introduce DefensiveMin and DefensiveMax (#12554)



* traits for defensive min and defensive max

* defensive min and strict min with tests

* defensive max and strict max with tests

* include docs

* implement partial ord on defensive min and max

* Update frame/support/src/traits/misc.rs

Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>

* wrap lines

* Fix traits

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Update frame/support/src/traits/misc.rs

* Update frame/support/src/traits/misc.rs

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
Co-authored-by: parity-processbot <>
parent 11b6409c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment