pub trait RangeSetEntry: Ord {
    // Required methods
    fn min_value() -> Self;
    fn is_min_value(&self) -> bool;
}
Expand description

trait for types that can be entries of range sets

they must have an order and a minimum value.

Required Methods§

source

fn min_value() -> Self

the minimum value for this type

source

fn is_min_value(&self) -> bool

checks if this is the minimum value

this is to be able to check for minimum without having to create a value

Implementations on Foreign Types§

source§

impl RangeSetEntry for i16

source§

impl<T: Ord> RangeSetEntry for &[T]

source§

impl RangeSetEntry for String

source§

impl RangeSetEntry for NonZeroU8

source§

impl RangeSetEntry for u16

source§

impl<T: Ord> RangeSetEntry for Vec<T>

source§

impl RangeSetEntry for i128

source§

impl RangeSetEntry for NonZeroUsize

source§

impl RangeSetEntry for NonZeroU32

source§

impl RangeSetEntry for usize

source§

impl RangeSetEntry for NonZeroU64

source§

impl RangeSetEntry for u32

source§

impl RangeSetEntry for NonZeroU16

source§

impl RangeSetEntry for isize

source§

impl RangeSetEntry for u64

source§

impl RangeSetEntry for i64

source§

impl RangeSetEntry for u8

source§

impl RangeSetEntry for i8

source§

impl RangeSetEntry for &str

source§

impl RangeSetEntry for i32

source§

impl RangeSetEntry for u128

source§

impl RangeSetEntry for NonZeroU128

source§

impl<T: Ord> RangeSetEntry for Option<T>

Implementors§