Struct glib::boxed::Boxed
[−]
[src]
pub struct Boxed<T: 'static, MM: BoxedMemoryManager<T>> { /* fields omitted */ }
Encapsulates memory management logic for boxed types.
Methods
impl<T: 'static, MM: BoxedMemoryManager<T>> Boxed<T, MM>
[src]
pub unsafe fn uninitialized() -> Self
[src]
Trait Implementations
impl<T: 'static, MM: BoxedMemoryManager<T>> Uninitialized for Boxed<T, MM>
[src]
unsafe fn uninitialized() -> Self
[src]
Returns an uninitialized value.
impl<'a, T: 'static, MM: BoxedMemoryManager<T>> ToGlibPtr<'a, *const T> for Boxed<T, MM>
[src]
type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *const T, Self>
[src]
Transfer: none. Read more
fn to_glib_full(&self) -> *const T
[src]
Transfer: full. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
Transfer: container. Read more
impl<'a, T: 'static, MM: BoxedMemoryManager<T>> ToGlibPtrMut<'a, *mut T> for Boxed<T, MM>
[src]
type Storage = &'a mut Self
fn to_glib_none_mut(&'a mut self) -> StashMut<'a, *mut T, Self>
[src]
Transfer: none. Read more
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrNone<*mut T> for Boxed<T, MM>
[src]
unsafe fn from_glib_none(ptr: *mut T) -> Self
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrFull<*mut T> for Boxed<T, MM>
[src]
unsafe fn from_glib_full(ptr: *mut T) -> Self
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrBorrow<*mut T> for Boxed<T, MM>
[src]
unsafe fn from_glib_borrow(ptr: *mut T) -> Self
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> Drop for Boxed<T, MM>
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> Debug for Boxed<T, MM>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: 'static, MM: BoxedMemoryManager<T>> Clone for Boxed<T, MM>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: 'static, MM: BoxedMemoryManager<T>> Deref for Boxed<T, MM>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.