pub struct Lifetime(/* private fields */);
Implementations§
§impl Lifetime
impl Lifetime
pub fn state(&self) -> &LifetimeState
pub fn borrow(&self) -> Option<LifetimeRef>
pub fn borrow_mut(&self) -> Option<LifetimeRefMut>
pub fn read<T, 'a>(&'a self, data: &'a T) -> Option<ValueReadAccess<'a, T>>
pub fn write<T, 'a>( &'a self, data: &'a mut T ) -> Option<ValueWriteAccess<'a, T>>
Trait Implementations§
Auto Trait Implementations§
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more