Struct intuicio_data::managed::DynamicManagedRef
source · pub struct DynamicManagedRef { /* private fields */ }Implementations§
source§impl DynamicManagedRef
impl DynamicManagedRef
pub fn new<T: ?Sized>(data: &T, lifetime: LifetimeRef) -> Self
pub fn into_inner(self) -> (TypeHash, LifetimeRef, NonNull<u8>)
pub fn into_typed<T>(self) -> Result<ManagedRef<T>, Self>
pub fn lifetime(&self) -> &LifetimeRef
pub fn borrow(&self) -> Option<DynamicManagedRef>
pub fn is<T>(&self) -> bool
pub fn read<T>(&self) -> Option<ValueReadAccess<'_, T>>
pub fn map<T, U>(self, f: impl FnOnce(&T) -> &U) -> Result<Self, Self>
pub fn try_map<T, U>( self, f: impl FnOnce(&T) -> Option<&U> ) -> Result<Self, Self>
Trait Implementations§
source§impl From<DynamicManagedRef> for DynamicManagedValue
impl From<DynamicManagedRef> for DynamicManagedValue
source§fn from(value: DynamicManagedRef) -> Self
fn from(value: DynamicManagedRef) -> Self
Converts to this type from the input type.
impl Send for DynamicManagedRef
impl Sync for DynamicManagedRef
Auto Trait Implementations§
impl RefUnwindSafe for DynamicManagedRef
impl Unpin for DynamicManagedRef
impl UnwindSafe for DynamicManagedRef
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