Skip to main content

IntervalBound

Trait IntervalBound 

Source
pub trait IntervalBound: Clone {
    // Required methods
    fn min_limit() -> Self;
    fn max_limit() -> Self;

    // Provided method
    fn empty_value() -> Option<Self> { ... }
}
Expand description

main trait to implement `Interval``

Required Methods§

Source

fn min_limit() -> Self

Source

fn max_limit() -> Self

Provided Methods§

Source

fn empty_value() -> Option<Self>

defaulting to None

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntervalBound for i8

default implementation of IntervalBound for i8

Source§

fn min_limit() -> Self

Source§

fn max_limit() -> Self

Source§

impl IntervalBound for i16

default implementation of IntervalBound for i16

Source§

fn min_limit() -> Self

Source§

fn max_limit() -> Self

Source§

impl IntervalBound for i32

default implementation of IntervalBound for i32

Source§

fn min_limit() -> Self

Source§

fn max_limit() -> Self

Source§

impl IntervalBound for i64

default implementation of IntervalBound for i64

Source§

fn min_limit() -> Self

Source§

fn max_limit() -> Self

Source§

impl IntervalBound for i128

default implementation of IntervalBound for i128

Source§

fn min_limit() -> Self

Source§

fn max_limit() -> Self

Source§

impl IntervalBound for u8

default implementation of IntervalBound for u8

Source§

fn min_limit() -> Self

Source§

fn max_limit() -> Self

Source§

impl IntervalBound for u16

default implementation of IntervalBound for u16

Source§

fn min_limit() -> Self

Source§

fn max_limit() -> Self

Source§

impl IntervalBound for u32

default implementation of IntervalBound for u32

Source§

fn min_limit() -> Self

Source§

fn max_limit() -> Self

Source§

impl IntervalBound for u64

default implementation of IntervalBound for u64

Source§

fn min_limit() -> Self

Source§

fn max_limit() -> Self

Source§

impl IntervalBound for u128

default implementation of IntervalBound for u128

Source§

fn min_limit() -> Self

Source§

fn max_limit() -> Self

Implementors§