Struct numerated::OptionBound
source · pub struct OptionBound<T>(/* private fields */);Expand description
Bound type for Option<T>.
Trait Implementations§
source§impl<T: Copy> Bound<T> for OptionBound<T>
impl<T: Copy> Bound<T> for OptionBound<T>
source§impl<T: Clone> Clone for OptionBound<T>
impl<T: Clone> Clone for OptionBound<T>
source§fn clone(&self) -> OptionBound<T>
fn clone(&self) -> OptionBound<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Debug> Debug for OptionBound<T>
impl<T: Debug> Debug for OptionBound<T>
source§impl<T> From<Option<T>> for OptionBound<T>
impl<T> From<Option<T>> for OptionBound<T>
source§fn from(original: Option<T>) -> OptionBound<T>
fn from(original: Option<T>) -> OptionBound<T>
Converts to this type from the input type.
source§impl<T> From<T> for OptionBound<T>
impl<T> From<T> for OptionBound<T>
source§impl<T> Ord for OptionBound<T>where
T: Ord,
impl<T> Ord for OptionBound<T>where
T: Ord,
source§impl<T> PartialEq<Option<T>> for OptionBound<T>where
T: PartialEq,
impl<T> PartialEq<Option<T>> for OptionBound<T>where
T: PartialEq,
source§impl<T> PartialEq<T> for OptionBound<T>where
T: PartialEq,
impl<T> PartialEq<T> for OptionBound<T>where
T: PartialEq,
source§impl<T: PartialEq> PartialEq for OptionBound<T>
impl<T: PartialEq> PartialEq for OptionBound<T>
source§fn eq(&self, other: &OptionBound<T>) -> bool
fn eq(&self, other: &OptionBound<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<T> PartialOrd<T> for OptionBound<T>where
T: PartialOrd,
impl<T> PartialOrd<T> for OptionBound<T>where
T: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<T> PartialOrd for OptionBound<T>where
T: PartialOrd,
impl<T> PartialOrd for OptionBound<T>where
T: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for OptionBound<T>
impl<T: Eq> Eq for OptionBound<T>
impl<T> StructuralPartialEq for OptionBound<T>
Auto Trait Implementations§
impl<T> Freeze for OptionBound<T>where
T: Freeze,
impl<T> RefUnwindSafe for OptionBound<T>where
T: RefUnwindSafe,
impl<T> Send for OptionBound<T>where
T: Send,
impl<T> Sync for OptionBound<T>where
T: Sync,
impl<T> Unpin for OptionBound<T>where
T: Unpin,
impl<T> UnwindSafe for OptionBound<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more