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>>
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