RangeSetEntry

Trait RangeSetEntry 

Source
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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RangeSetEntry for &str

Source§

impl RangeSetEntry for i8

Source§

impl RangeSetEntry for i16

Source§

impl RangeSetEntry for i32

Source§

impl RangeSetEntry for i64

Source§

impl RangeSetEntry for i128

Source§

impl RangeSetEntry for isize

Source§

impl RangeSetEntry for u8

Source§

impl RangeSetEntry for u16

Source§

impl RangeSetEntry for u32

Source§

impl RangeSetEntry for u64

Source§

impl RangeSetEntry for u128

Source§

impl RangeSetEntry for usize

Source§

impl RangeSetEntry for String

Source§

impl RangeSetEntry for NonZeroU8

Source§

impl RangeSetEntry for NonZeroU16

Source§

impl RangeSetEntry for NonZeroU32

Source§

impl RangeSetEntry for NonZeroU64

Source§

impl RangeSetEntry for NonZeroU128

Source§

impl RangeSetEntry for NonZeroUsize

Source§

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

Source§

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

Source§

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

Implementors§