pub struct LifetimeRefMut(/* private fields */);
Implementations§
source§impl LifetimeRefMut
impl LifetimeRefMut
pub fn state(&self) -> &LifetimeWeakState
pub fn depth(&self) -> usize
pub fn exists(&self) -> bool
pub fn can_read(&self) -> bool
pub fn can_write(&self) -> bool
pub fn is_read_accessible(&self) -> bool
pub fn is_write_accessible(&self) -> bool
pub fn is_in_use(&self) -> bool
pub fn is_owned_by(&self, other: &Lifetime) -> bool
pub fn borrow(&self) -> Option<LifetimeRef>
pub fn borrow_mut(&self) -> Option<LifetimeRefMut>
pub fn read<'a, T>(&'a self, data: &'a T) -> Option<ValueReadAccess<'a, T>>where
T: ?Sized,
sourcepub unsafe fn read_ptr<T>(
&self,
data: *const T,
) -> Option<ValueReadAccess<'_, T>>where
T: ?Sized,
pub unsafe fn read_ptr<T>(
&self,
data: *const T,
) -> Option<ValueReadAccess<'_, T>>where
T: ?Sized,
§Safety
pub fn write<'a, T>(
&'a self,
data: &'a mut T,
) -> Option<ValueWriteAccess<'a, T>>where
T: ?Sized,
sourcepub unsafe fn write_ptr<T>(
&self,
data: *mut T,
) -> Option<ValueWriteAccess<'_, T>>where
T: ?Sized,
pub unsafe fn write_ptr<T>(
&self,
data: *mut T,
) -> Option<ValueWriteAccess<'_, T>>where
T: ?Sized,
§Safety
pub fn consume<T>(
self,
data: &mut T,
) -> Result<ValueWriteAccess<'_, T>, LifetimeRefMut>where
T: ?Sized,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LifetimeRefMut
impl RefUnwindSafe for LifetimeRefMut
impl Send for LifetimeRefMut
impl Sync for LifetimeRefMut
impl Unpin for LifetimeRefMut
impl UnwindSafe for LifetimeRefMut
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