pub struct ARef<'a, T: ?Sized + 'a> { /* private fields */ }Expand description
Implementations§
Source§impl<'a, T: ?Sized + 'a> ARef<'a, T>
impl<'a, T: ?Sized + 'a> ARef<'a, T>
Trait Implementations§
impl<A: Eq + ?Sized> Eq for ARef<'_, A>
Source§impl<A: Ord + ?Sized> Ord for ARef<'_, A>
impl<A: Ord + ?Sized> Ord for ARef<'_, A>
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<A: PartialOrd<B> + ?Sized, B: ?Sized> PartialOrd<ARef<'_, B>> for ARef<'_, A>
impl<A: PartialOrd<B> + ?Sized, B: ?Sized> PartialOrd<ARef<'_, B>> for ARef<'_, A>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for ARef<'a, T>
impl<'a, T> !Send for ARef<'a, T>
impl<'a, T> !Sync for ARef<'a, T>
impl<'a, T> !UnwindSafe for ARef<'a, T>
impl<'a, T> Freeze for ARef<'a, T>where
T: ?Sized,
impl<'a, T> Unpin for ARef<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for ARef<'a, T>where
T: ?Sized,
Blanket Implementations§
Source§impl<T> AsARef<T> for Twhere
T: ?Sized,
impl<T> AsARef<T> for Twhere
T: ?Sized,
Source§fn try_as_aref(this: &T) -> Result<ARef<'_, T>, BorrowError>
fn try_as_aref(this: &T) -> Result<ARef<'_, T>, BorrowError>
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