pub struct Ref<'a, T> { /* private fields */ }
Trait Implementations§
Source§impl<'a, T> From<&'a mut [MaybeUninit<T>]> for Ref<'a, T>
impl<'a, T> From<&'a mut [MaybeUninit<T>]> for Ref<'a, T>
Source§fn from(value: &'a mut [MaybeUninit<T>]) -> Self
fn from(value: &'a mut [MaybeUninit<T>]) -> Self
Converts to this type from the input type.
Source§impl<'a, T> From<Ref<'a, T>> for &'a mut [MaybeUninit<T>]
impl<'a, T> From<Ref<'a, T>> for &'a mut [MaybeUninit<T>]
Source§impl<'a, T> Storage for Ref<'a, T>
impl<'a, T> Storage for Ref<'a, T>
Source§fn as_mut_ptr(&self) -> *mut MaybeUninit<T>
fn as_mut_ptr(&self) -> *mut MaybeUninit<T>
Return mutable pointer to the beginning of the storage items.
fn is_empty(&self) -> bool
Source§fn as_ptr(&self) -> *const MaybeUninit<Self::Item>
fn as_ptr(&self) -> *const MaybeUninit<Self::Item>
Return pointer to the beginning of the storage items.
impl<'a, T> Send for Ref<'a, T>where
T: Send,
impl<'a, T> Sync for Ref<'a, T>where
T: Send,
Auto Trait Implementations§
impl<'a, T> Freeze for Ref<'a, T>
impl<'a, T> RefUnwindSafe for Ref<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Unpin for Ref<'a, T>
impl<'a, T> !UnwindSafe for Ref<'a, T>
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