Trait Boundable
boundnum
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.
Bounded
type Raw
type Bound: AsBound<Self::Raw>
fn bound(self) -> Option<Bounded<Self::Raw, Self::Bound>>
impl<T, B> Boundable<B> for T where T: Copy, B: AsBound<T> + Default,
type Raw = T
type Bound = B
Try to bound a value.