pub struct DynamicManagedBox { /* private fields */ }
Implementations§
Source§impl DynamicManagedBox
impl DynamicManagedBox
pub fn new<T: Finalize>(value: T) -> Self
pub fn new_uninitialized( type_hash: TypeHash, layout: Layout, finalizer: unsafe fn(_: *mut ()), ) -> Self
pub fn into_typed<T>(self) -> Result<ManagedBox<T>, Self>
pub fn instances_count(&self) -> usize
pub fn type_hash(&self) -> Option<TypeHash>
pub fn lifetime_borrow(&self) -> Option<LifetimeRef>
pub fn lifetime_borrow_mut(&self) -> Option<LifetimeRefMut>
pub fn lifetime_lazy(&self) -> Option<LifetimeLazy>
pub fn is<T>(&self) -> bool
pub fn borrow(&self) -> Option<DynamicManagedRef>
pub fn borrow_mut(&mut self) -> Option<DynamicManagedRefMut>
pub fn lazy(&self) -> Option<DynamicManagedLazy>
pub fn read<T>(&self) -> Option<ValueReadAccess<'_, T>>
pub fn write<T>(&mut self) -> Option<ValueWriteAccess<'_, T>>
Sourcepub unsafe fn memory_mut(&mut self) -> Option<&mut [u8]>
pub unsafe fn memory_mut(&mut self) -> Option<&mut [u8]>
§Safety
Sourcepub unsafe fn as_ptr_mut<T>(&mut self) -> Option<*mut T>
pub unsafe fn as_ptr_mut<T>(&mut self) -> Option<*mut T>
§Safety
Trait Implementations§
Source§impl Clone for DynamicManagedBox
impl Clone for DynamicManagedBox
Auto Trait Implementations§
impl Freeze for DynamicManagedBox
impl RefUnwindSafe for DynamicManagedBox
impl !Send for DynamicManagedBox
impl !Sync for DynamicManagedBox
impl Unpin for DynamicManagedBox
impl UnwindSafe for DynamicManagedBox
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