pub enum DynamicManagedValue {
Owned(DynamicManaged),
Ref(DynamicManagedRef),
RefMut(DynamicManagedRefMut),
Lazy(DynamicManagedLazy),
}
Variants§
Implementations§
Source§impl DynamicManagedValue
impl DynamicManagedValue
pub fn as_owned(&self) -> Option<&DynamicManaged>
pub fn as_mut_owned(&mut self) -> Option<&mut DynamicManaged>
pub fn as_ref(&self) -> Option<&DynamicManagedRef>
pub fn as_mut_ref(&mut self) -> Option<&mut DynamicManagedRef>
pub fn as_ref_mut(&self) -> Option<&DynamicManagedRefMut>
pub fn as_mut_ref_mut(&mut self) -> Option<&mut DynamicManagedRefMut>
pub fn as_lazy(&self) -> Option<&DynamicManagedLazy>
pub fn as_mut_lazy(&mut self) -> Option<&mut DynamicManagedLazy>
pub fn read<T>(&self) -> Option<ValueReadAccess<'_, T>>
pub fn write<T>(&mut self) -> Option<ValueWriteAccess<'_, T>>
pub fn borrow(&self) -> Option<DynamicManagedRef>
pub fn borrow_mut(&mut self) -> Option<DynamicManagedRefMut>
pub fn lazy(&self) -> Option<DynamicManagedLazy>
Trait Implementations§
Source§impl From<DynamicManaged> for DynamicManagedValue
impl From<DynamicManaged> for DynamicManagedValue
Source§fn from(value: DynamicManaged) -> Self
fn from(value: DynamicManaged) -> Self
Converts to this type from the input type.
Source§impl From<DynamicManagedLazy> for DynamicManagedValue
impl From<DynamicManagedLazy> for DynamicManagedValue
Source§fn from(value: DynamicManagedLazy) -> Self
fn from(value: DynamicManagedLazy) -> Self
Converts to this type from the input type.
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.
Source§impl From<DynamicManagedRefMut> for DynamicManagedValue
impl From<DynamicManagedRefMut> for DynamicManagedValue
Source§fn from(value: DynamicManagedRefMut) -> Self
fn from(value: DynamicManagedRefMut) -> Self
Converts to this type from the input type.
Source§impl TryFrom<DynamicManagedValue> for DynamicManaged
impl TryFrom<DynamicManagedValue> for DynamicManaged
Auto Trait Implementations§
impl Freeze for DynamicManagedValue
impl RefUnwindSafe for DynamicManagedValue
impl Send for DynamicManagedValue
impl Sync for DynamicManagedValue
impl Unpin for DynamicManagedValue
impl UnwindSafe for DynamicManagedValue
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