Struct oxygengine::prelude::intuicio::prelude::LifetimeRef
pub struct LifetimeRef(/* private fields */);
Implementations§
§impl LifetimeRef
impl LifetimeRef
pub fn state(&self) -> &LifetimeWeakState
pub fn exists(&self) -> bool
pub fn can_read(&self) -> bool
pub fn is_read_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 read<T, 'a>(&'a self, data: &'a T) -> Option<ValueReadAccess<'a, T>>
pub fn consume<T>(self, data: &T) -> Result<ValueReadAccess<'_, T>, LifetimeRef>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LifetimeRef
impl Send for LifetimeRef
impl Sync for LifetimeRef
impl Unpin for LifetimeRef
impl UnwindSafe for LifetimeRef
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