pub struct ManagedBox<T> { /* private fields */ }
Implementations§
Source§impl<T> ManagedBox<T>
impl<T> ManagedBox<T>
pub fn new(value: T) -> Selfwhere
T: Finalize,
pub fn into_dynamic(self) -> DynamicManagedBox
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 read(&self) -> Option<ValueReadAccess<'_, T>>
pub fn write(&mut self) -> Option<ValueWriteAccess<'_, T>>
pub fn borrow(&self) -> Option<ManagedRef<T>>
pub fn borrow_mut(&mut self) -> Option<ManagedRefMut<T>>
pub fn lazy(&self) -> Option<ManagedLazy<T>>
Sourcepub unsafe fn as_ptr_mut(&mut self) -> Option<*mut T>
pub unsafe fn as_ptr_mut(&mut self) -> Option<*mut T>
§Safety
Trait Implementations§
Source§impl<T> Clone for ManagedBox<T>
impl<T> Clone for ManagedBox<T>
Source§impl<T: Default> Default for ManagedBox<T>
impl<T: Default> Default for ManagedBox<T>
Auto Trait Implementations§
impl<T> Freeze for ManagedBox<T>
impl<T> RefUnwindSafe for ManagedBox<T>where
T: RefUnwindSafe,
impl<T> !Send for ManagedBox<T>
impl<T> !Sync for ManagedBox<T>
impl<T> Unpin for ManagedBox<T>
impl<T> UnwindSafe for ManagedBox<T>where
T: RefUnwindSafe,
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