pub struct CabbageBox<T> {
pub raw_cabbage: *mut RawCabbage,
/* private fields */
}Expand description
Object Wrapper managed by the Cabbage Collector This can share same object
Fields§
§raw_cabbage: *mut RawCabbageImplementations§
Source§impl<T> CabbageBox<T>
impl<T> CabbageBox<T>
pub fn new_root(value: T) -> Self
pub fn new_non_root(value: T) -> CabbageBox<T>
pub fn adopt_child<U>(&mut self, child: CabbageBox<U>)
Trait Implementations§
Source§impl<T> Clone for CabbageBox<T>
impl<T> Clone for CabbageBox<T>
Source§impl<T: Debug> Debug for CabbageBox<T>
impl<T: Debug> Debug for CabbageBox<T>
Source§impl<T> Deref for CabbageBox<T>
impl<T> Deref for CabbageBox<T>
Source§impl<T> DerefMut for CabbageBox<T>
impl<T> DerefMut for CabbageBox<T>
Auto Trait Implementations§
impl<T> Freeze for CabbageBox<T>
impl<T> RefUnwindSafe for CabbageBox<T>where
T: RefUnwindSafe,
impl<T> !Send for CabbageBox<T>
impl<T> !Sync for CabbageBox<T>
impl<T> Unpin for CabbageBox<T>where
T: Unpin,
impl<T> UnwindSafe for CabbageBox<T>where
T: UnwindSafe,
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