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