pub struct Boxed<T: 'static, MM: BoxedMemoryManager<T>> { /* private fields */ }Expand description
Encapsulates memory management logic for boxed types.
Implementations§
source§impl<T: 'static, MM: BoxedMemoryManager<T>> Boxed<T, MM>
impl<T: 'static, MM: BoxedMemoryManager<T>> Boxed<T, MM>
pub unsafe fn uninitialized() -> Self
Trait Implementations§
source§impl<T: 'static, MM: BoxedMemoryManager<T>> Clone for Boxed<T, MM>
impl<T: 'static, MM: BoxedMemoryManager<T>> Clone for Boxed<T, MM>
source§impl<T: 'static, MM: BoxedMemoryManager<T>> Drop for Boxed<T, MM>
impl<T: 'static, MM: BoxedMemoryManager<T>> Drop for Boxed<T, MM>
source§impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtr<*mut T> for Boxed<T, MM>
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtr<*mut T> for Boxed<T, MM>
source§unsafe fn from_glib_none(ptr: *mut T) -> Self
unsafe fn from_glib_none(ptr: *mut T) -> Self
Transfer: none.
source§unsafe fn from_glib_full(ptr: *mut T) -> Self
unsafe fn from_glib_full(ptr: *mut T) -> Self
Transfer: full.
source§unsafe fn from_glib_borrow(ptr: *mut T) -> Self
unsafe fn from_glib_borrow(ptr: *mut T) -> Self
Borrow. Don’t increase the refcount.
source§impl<'a, T: 'static, MM: BoxedMemoryManager<T>> ToGlibPtrMut<'a, *mut T> for Boxed<T, MM>
impl<'a, T: 'static, MM: BoxedMemoryManager<T>> ToGlibPtrMut<'a, *mut T> for Boxed<T, MM>
source§impl<T: 'static, MM: BoxedMemoryManager<T>> Uninitialized for Boxed<T, MM>
impl<T: 'static, MM: BoxedMemoryManager<T>> Uninitialized for Boxed<T, MM>
source§unsafe fn uninitialized() -> Self
unsafe fn uninitialized() -> Self
Returns an uninitialized value.
Auto Trait Implementations§
impl<T, MM> Freeze for Boxed<T, MM>
impl<T, MM> RefUnwindSafe for Boxed<T, MM>where
MM: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, MM> !Send for Boxed<T, MM>
impl<T, MM> !Sync for Boxed<T, MM>
impl<T, MM> Unpin for Boxed<T, MM>where
MM: Unpin,
impl<T, MM> UnwindSafe for Boxed<T, MM>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)