Struct intuicio_data::managed::DynamicManagedRef
source · pub struct DynamicManagedRef { /* private fields */ }Implementations§
source§impl DynamicManagedRef
impl DynamicManagedRef
pub fn new<T: 'static>(data: &T, lifetime: LifetimeRef) -> Self
pub fn into_inner(self) -> (TypeHash, LifetimeRef, NonNull<u8>)
pub fn into_typed<T: 'static>(self) -> Result<ManagedRef<T>, Self>
pub fn lifetime(&self) -> &LifetimeRef
pub fn borrow(&self) -> Option<DynamicManagedRef>
pub fn read<T: 'static>(&self) -> Option<ValueReadAccess<'_, T>>
pub fn map<T: 'static, U: 'static>( self, f: impl FnOnce(&T) -> &U ) -> Result<Self, Self>
pub fn try_map<T: 'static, U: 'static>( self, f: impl FnOnce(&T) -> Option<&U> ) -> Result<Self, Self>
Trait Implementations§
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