Struct mmtkvdb::owning_pointer::Owned
source · [−]pub struct Owned<X>(pub X);
Expand description
Smart pointer to owned inner value
(see deref
implementation)
Tuple Fields
0: X
Trait Implementations
sourceimpl<X: Ord> Ord for Owned<X>
impl<X: Ord> Ord for Owned<X>
sourceimpl<X: PartialOrd> PartialOrd<Owned<X>> for Owned<X>
impl<X: PartialOrd> PartialOrd<Owned<X>> for Owned<X>
sourcefn partial_cmp(&self, other: &Owned<X>) -> Option<Ordering>
fn partial_cmp(&self, other: &Owned<X>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl<T> PointerIntoOwned for Owned<T>
impl<T> PointerIntoOwned for Owned<T>
type Owned = T
type Owned = T
The type the pointer can be converted into
sourcefn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Convert into owned type
impl<X: Eq> Eq for Owned<X>
impl<X> StructuralEq for Owned<X>
impl<X> StructuralPartialEq for Owned<X>
Auto Trait Implementations
impl<X> RefUnwindSafe for Owned<X> where
X: RefUnwindSafe,
impl<X> Send for Owned<X> where
X: Send,
impl<X> Sync for Owned<X> where
X: Sync,
impl<X> Unpin for Owned<X> where
X: Unpin,
impl<X> UnwindSafe for Owned<X> where
X: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more