pub struct Lifetime(/* private fields */);
Implementations§
Source§impl Lifetime
impl Lifetime
pub fn state(&self) -> &LifetimeState
pub fn borrow(&self) -> Option<LifetimeRef>
pub fn borrow_mut(&self) -> Option<LifetimeRefMut>
pub fn lazy(&self) -> LifetimeLazy
pub fn read<'a, T: ?Sized>( &'a self, data: &'a T, ) -> Option<ValueReadAccess<'a, T>>
Sourcepub unsafe fn read_ptr<T: ?Sized>(
&self,
data: *const T,
) -> Option<ValueReadAccess<'_, T>>
pub unsafe fn read_ptr<T: ?Sized>( &self, data: *const T, ) -> Option<ValueReadAccess<'_, T>>
§Safety
pub fn write<'a, T: ?Sized>( &'a self, data: &'a mut T, ) -> Option<ValueWriteAccess<'a, T>>
Sourcepub unsafe fn write_ptr<T: ?Sized>(
&self,
data: *mut T,
) -> Option<ValueWriteAccess<'_, T>>
pub unsafe fn write_ptr<T: ?Sized>( &self, data: *mut T, ) -> Option<ValueWriteAccess<'_, T>>
§Safety
pub fn read_lock(&self) -> ReadLock
pub fn write_lock(&self) -> WriteLock
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lifetime
impl RefUnwindSafe for Lifetime
impl Send for Lifetime
impl Sync for Lifetime
impl Unpin for Lifetime
impl UnwindSafe for Lifetime
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