pub struct DynamicObjectLazy { /* private fields */ }Implementations§
Source§impl DynamicObjectLazy
impl DynamicObjectLazy
pub fn new(data: DynamicManagedLazy) -> Self
pub fn actual_type_hash(&self) -> TypeHash
pub fn current_type_hash(&self) -> TypeHash
pub fn upcast(self, type_hash: TypeHash, registry: &Registry) -> Option<Self>
pub fn downcast(self, type_hash: TypeHash, registry: &Registry) -> Option<Self>
pub fn into_inner(self, registry: &Registry) -> Option<DynamicManagedLazy>
pub fn into_typed<T>(self) -> Result<ObjectLazy<T>, Self>
Methods from Deref<Target = DynamicManagedLazy>§
pub fn type_hash(&self) -> &TypeHash
pub fn lifetime(&self) -> &LifetimeLazy
pub fn is<T>(&self) -> bool
pub fn read<T>(&self) -> Option<ValueReadAccess<'_, T>>
pub fn write<T>(&self) -> Option<ValueWriteAccess<'_, T>>
pub fn borrow(&self) -> Option<DynamicManagedRef>
pub fn borrow_mut(&mut self) -> Option<DynamicManagedRefMut>
Sourcepub unsafe fn as_mut_ptr<T>(&self) -> Option<*mut T>
pub unsafe fn as_mut_ptr<T>(&self) -> Option<*mut T>
§Safety
Trait Implementations§
Source§impl Clone for DynamicObjectLazy
impl Clone for DynamicObjectLazy
Source§impl Deref for DynamicObjectLazy
impl Deref for DynamicObjectLazy
Auto Trait Implementations§
impl Freeze for DynamicObjectLazy
impl RefUnwindSafe for DynamicObjectLazy
impl Send for DynamicObjectLazy
impl Sync for DynamicObjectLazy
impl Unpin for DynamicObjectLazy
impl UnwindSafe for DynamicObjectLazy
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