Struct intuicio_essentials::data::managed_box::ManagedBox
source · pub struct ManagedBox<T> { /* private fields */ }Implementations§
source§impl<T> ManagedBox<T>
impl<T> ManagedBox<T>
pub fn new(value: T) -> ManagedBox<T>where
T: Finalize,
pub fn into_dynamic(self) -> DynamicManagedBox
pub fn instances_count(&self) -> usize
pub fn type_hash(&self) -> TypeHash
pub fn borrow(&self) -> Option<ManagedRef<T>>
pub fn borrow_mut(&mut self) -> Option<ManagedRefMut<T>>
pub fn lazy(&self) -> ManagedLazy<T>
pub fn read(&self) -> Option<ValueReadAccess<'_, T>>
pub fn write(&mut self) -> Option<ValueWriteAccess<'_, 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§fn clone(&self) -> ManagedBox<T>
fn clone(&self) -> ManagedBox<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T> Default for ManagedBox<T>where
T: Default,
impl<T> Default for ManagedBox<T>where
T: Default,
source§fn default() -> ManagedBox<T>
fn default() -> ManagedBox<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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