pub struct LifetimeLazy(/* private fields */);
Implementations§
source§impl LifetimeLazy
impl LifetimeLazy
pub fn state(&self) -> &LifetimeWeakState
pub fn exists(&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: ?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 consume<T: ?Sized>( self, data: &mut T, ) -> Result<ValueWriteAccess<'_, T>, Self>
Trait Implementations§
source§impl Clone for LifetimeLazy
impl Clone for LifetimeLazy
source§fn clone(&self) -> LifetimeLazy
fn clone(&self) -> LifetimeLazy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LifetimeLazy
impl RefUnwindSafe for LifetimeLazy
impl Send for LifetimeLazy
impl Sync for LifetimeLazy
impl Unpin for LifetimeLazy
impl UnwindSafe for LifetimeLazy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)