Struct mmtkvdb::owning_pointer::OwnedPointer
source · [−]pub struct OwnedPointer<X>(pub X);
Expand description
Smart pointer to value pointed-to by owned inner value
(see deref
implementation)
Tuple Fields
0: X
Trait Implementations
sourceimpl<X: Debug> Debug for OwnedPointer<X>
impl<X: Debug> Debug for OwnedPointer<X>
sourceimpl<X: Deref> Deref for OwnedPointer<X>
impl<X: Deref> Deref for OwnedPointer<X>
sourceimpl<X: Hash> Hash for OwnedPointer<X>
impl<X: Hash> Hash for OwnedPointer<X>
sourceimpl<X: Ord> Ord for OwnedPointer<X>
impl<X: Ord> Ord for OwnedPointer<X>
sourceimpl<X: PartialEq> PartialEq<OwnedPointer<X>> for OwnedPointer<X>
impl<X: PartialEq> PartialEq<OwnedPointer<X>> for OwnedPointer<X>
sourcefn eq(&self, other: &OwnedPointer<X>) -> bool
fn eq(&self, other: &OwnedPointer<X>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OwnedPointer<X>) -> bool
fn ne(&self, other: &OwnedPointer<X>) -> bool
This method tests for !=
.
sourceimpl<X: PartialOrd> PartialOrd<OwnedPointer<X>> for OwnedPointer<X>
impl<X: PartialOrd> PartialOrd<OwnedPointer<X>> for OwnedPointer<X>
sourcefn partial_cmp(&self, other: &OwnedPointer<X>) -> Option<Ordering>
fn partial_cmp(&self, other: &OwnedPointer<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 OwnedPointer<T>
impl<T> PointerIntoOwned for OwnedPointer<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 OwnedPointer<X>
impl<X> StructuralEq for OwnedPointer<X>
impl<X> StructuralPartialEq for OwnedPointer<X>
Auto Trait Implementations
impl<X> RefUnwindSafe for OwnedPointer<X> where
X: RefUnwindSafe,
impl<X> Send for OwnedPointer<X> where
X: Send,
impl<X> Sync for OwnedPointer<X> where
X: Sync,
impl<X> Unpin for OwnedPointer<X> where
X: Unpin,
impl<X> UnwindSafe for OwnedPointer<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