[−][src]Struct boundnum::Bounded
A wrapper struct representing bounded numeric type.
Implementations
impl<T, B: AsBound<T> + Default> Bounded<T, B>
[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]
Auto Trait Implementations
impl<T, B> RefUnwindSafe for Bounded<T, B> where
B: RefUnwindSafe,
T: RefUnwindSafe,
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> Send for Bounded<T, B> where
B: Send,
T: Send,
B: Send,
T: Send,
impl<T, B> Sync for Bounded<T, B> where
B: Sync,
T: Sync,
B: Sync,
T: Sync,
impl<T, B> Unpin for Bounded<T, B> where
B: Unpin,
T: Unpin,
B: Unpin,
T: Unpin,
impl<T, B> UnwindSafe for Bounded<T, B> where
B: UnwindSafe,
T: UnwindSafe,
B: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, B> Boundable<B> for T where
B: AsBound<T> + Default,
T: Copy,
[src]
B: AsBound<T> + Default,
T: Copy,
type Raw = T
type Bound = B
fn bound(
Self
) -> Option<Bounded<<T as Boundable<B>>::Raw, <T as Boundable<B>>::Bound>>
[src]
Self
) -> Option<Bounded<<T as Boundable<B>>::Raw, <T as Boundable<B>>::Bound>>
Try to bound a value.
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,