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<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§impl<T> PartialOrd<T> for OptionBound<T>where
T: PartialOrd,
impl<T> PartialOrd<T> for OptionBound<T>where
T: PartialOrd,
Source§impl<T> PartialOrd for OptionBound<T>where
T: PartialOrd,
impl<T> PartialOrd for OptionBound<T>where
T: PartialOrd,
impl<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