[][src]Trait boundnum::Boundable

pub trait Boundable<B> {
    type Raw;
    type Bound: AsBound<Self::Raw>;
    fn bound(self) -> Option<Bounded<Self::Raw, Self::Bound>>;
}

A trait of the type being converted to Bounded.

Associated Types

type Raw

type Bound: AsBound<Self::Raw>

Loading content...

Required methods

fn bound(self) -> Option<Bounded<Self::Raw, Self::Bound>>

Loading content...

Implementors

impl<T, B> Boundable<B> for T where
    T: Copy,
    B: AsBound<T> + Default
[src]

type Raw = T

type Bound = B

fn bound(self) -> Option<Bounded<Self::Raw, Self::Bound>>[src]

Try to bound a value.

Loading content...