pub struct ReturnPointee<T>(pub T);Expand description
Action that returns the value the Pointee points to when called.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<P, T, X> Action<X, T> for ReturnPointee<P>where
P: Pointee<T>,
impl<P, T, X> Action<X, T> for ReturnPointee<P>where
P: Pointee<T>,
Source§impl<T: Clone> Clone for ReturnPointee<T>
impl<T: Clone> Clone for ReturnPointee<T>
Source§fn clone(&self) -> ReturnPointee<T>
fn clone(&self) -> ReturnPointee<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for ReturnPointee<T>
Source§impl<T: Debug> Debug for ReturnPointee<T>
impl<T: Debug> Debug for ReturnPointee<T>
impl<T: Eq> Eq for ReturnPointee<T>
Source§impl<T: Hash> Hash for ReturnPointee<T>
impl<T: Hash> Hash for ReturnPointee<T>
Source§impl<T: Ord> Ord for ReturnPointee<T>
impl<T: Ord> Ord for ReturnPointee<T>
Source§fn cmp(&self, other: &ReturnPointee<T>) -> Ordering
fn cmp(&self, other: &ReturnPointee<T>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for ReturnPointee<T>
impl<T: PartialEq> PartialEq for ReturnPointee<T>
Source§fn eq(&self, other: &ReturnPointee<T>) -> bool
fn eq(&self, other: &ReturnPointee<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T: PartialOrd> PartialOrd for ReturnPointee<T>
impl<T: PartialOrd> PartialOrd for ReturnPointee<T>
impl<T> StructuralPartialEq for ReturnPointee<T>
Auto Trait Implementations§
impl<T> Freeze for ReturnPointee<T>where
T: Freeze,
impl<T> RefUnwindSafe for ReturnPointee<T>where
T: RefUnwindSafe,
impl<T> Send for ReturnPointee<T>where
T: Send,
impl<T> Sync for ReturnPointee<T>where
T: Sync,
impl<T> Unpin for ReturnPointee<T>where
T: Unpin,
impl<T> UnsafeUnpin for ReturnPointee<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ReturnPointee<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