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<T, 'a>(&'a self, data: &'a T) -> Option<ValueReadAccess<'a, T>>where
T: ?Sized,
pub fn write<T, 'a>(
&'a self,
data: &'a mut T
) -> Option<ValueWriteAccess<'a, T>>where
T: ?Sized,
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