[][src]Struct boundnum::Bounded

pub struct Bounded<T, B: AsBound<T>> { /* fields omitted */ }

A wrapper struct representing bounded numeric type.

Implementations

impl<T, B: AsBound<T> + Default> Bounded<T, B>[src]

pub fn new<A>() -> Self where
    A: ToValue<T>,
    B: Contains<A, Output = True>, 
[src]

Trait Implementations

impl<T, B: AsBound<T>> AsRef<T> for Bounded<T, B>[src]

impl<T, B: AsBound<T>> Borrow<T> for Bounded<T, B>[src]

impl<T: Clone, B: Clone + AsBound<T>> Clone for Bounded<T, B>[src]

impl<T: Copy, B: Copy + AsBound<T>> Copy for Bounded<T, B>[src]

impl<T: Debug, B: Debug + AsBound<T>> Debug for Bounded<T, B>[src]

impl<T, B: AsBound<T>> Deref for Bounded<T, B>[src]

type Target = T

The resulting type after dereferencing.

Auto Trait Implementations

impl<T, B> RefUnwindSafe for Bounded<T, B> where
    B: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, B> Send for Bounded<T, B> where
    B: Send,
    T: Send

impl<T, B> Sync for Bounded<T, B> where
    B: Sync,
    T: Sync

impl<T, B> Unpin for Bounded<T, B> where
    B: Unpin,
    T: Unpin

impl<T, B> UnwindSafe for Bounded<T, B> where
    B: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

type Raw = T

type Bound = B

fn bound(
    Self
) -> Option<Bounded<<T as Boundable<B>>::Raw, <T as Boundable<B>>::Bound>>
[src]

Try to bound a value.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.