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]
impl<T: 'static, MM: BoxedMemoryManager<T>> Boxed<T, MM>
pub unsafe fn uninitialized() -> Self
[src]
pub unsafe fn uninitialized() -> Self
Trait Implementations
impl<T: 'static, MM: BoxedMemoryManager<T>> Uninitialized for Boxed<T, MM>
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> Uninitialized for Boxed<T, MM>
unsafe fn uninitialized() -> Self
[src]
unsafe fn uninitialized() -> Self
Returns an uninitialized value.
impl<'a, T: 'static, MM: BoxedMemoryManager<T>> ToGlibPtr<'a, *const T> for Boxed<T, MM>
[src]
impl<'a, T: 'static, MM: BoxedMemoryManager<T>> ToGlibPtr<'a, *const T> for Boxed<T, MM>
type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *const T, Self>
[src]
fn to_glib_none(&'a self) -> Stash<'a, *const T, Self>
Transfer: none. Read more
fn to_glib_full(&self) -> *const T
[src]
fn to_glib_full(&self) -> *const T
Transfer: full. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
impl<'a, T: 'static, MM: BoxedMemoryManager<T>> ToGlibPtrMut<'a, *mut T> for Boxed<T, MM>
[src]
impl<'a, T: 'static, MM: BoxedMemoryManager<T>> ToGlibPtrMut<'a, *mut T> for Boxed<T, MM>
type Storage = &'a mut Self
fn to_glib_none_mut(&'a mut self) -> StashMut<'a, *mut T, Self>
[src]
fn to_glib_none_mut(&'a mut self) -> StashMut<'a, *mut T, Self>
Transfer: none. Read more
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrNone<*mut T> for Boxed<T, MM>
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrNone<*mut T> for Boxed<T, MM>
unsafe fn from_glib_none(ptr: *mut T) -> Self
[src]
unsafe fn from_glib_none(ptr: *mut T) -> Self
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrNone<*const T> for Boxed<T, MM>
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrNone<*const T> for Boxed<T, MM>
unsafe fn from_glib_none(ptr: *const T) -> Self
[src]
unsafe fn from_glib_none(ptr: *const T) -> Self
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrFull<*mut T> for Boxed<T, MM>
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrFull<*mut T> for Boxed<T, MM>
unsafe fn from_glib_full(ptr: *mut T) -> Self
[src]
unsafe fn from_glib_full(ptr: *mut T) -> Self
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrBorrow<*mut T> for Boxed<T, MM>
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrBorrow<*mut T> for Boxed<T, MM>
unsafe fn from_glib_borrow(ptr: *mut T) -> Self
[src]
unsafe fn from_glib_borrow(ptr: *mut T) -> Self
impl<T: 'static, MM: BoxedMemoryManager<T>> Drop for Boxed<T, MM>
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> Drop for Boxed<T, MM>
impl<T: 'static, MM: BoxedMemoryManager<T>> Debug for Boxed<T, MM>
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> Debug for Boxed<T, MM>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T, MM: BoxedMemoryManager<T>> PartialOrd for Boxed<T, MM>
[src]
impl<T, MM: BoxedMemoryManager<T>> PartialOrd for Boxed<T, MM>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T, MM: BoxedMemoryManager<T>> Ord for Boxed<T, MM>
[src]
impl<T, MM: BoxedMemoryManager<T>> Ord for Boxed<T, MM>
fn cmp(&self, other: &Self) -> Ordering
[src]
fn cmp(&self, other: &Self) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<T, MM: BoxedMemoryManager<T>> PartialEq for Boxed<T, MM>
[src]
impl<T, MM: BoxedMemoryManager<T>> PartialEq for Boxed<T, MM>
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<T, MM: BoxedMemoryManager<T>> Eq for Boxed<T, MM>
[src]
impl<T, MM: BoxedMemoryManager<T>> Eq for Boxed<T, MM>
impl<T, MM: BoxedMemoryManager<T>> Hash for Boxed<T, MM>
[src]
impl<T, MM: BoxedMemoryManager<T>> Hash for Boxed<T, MM>
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: 'static, MM: BoxedMemoryManager<T>> Clone for Boxed<T, MM>
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> Clone for Boxed<T, MM>
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T: 'static, MM: BoxedMemoryManager<T>> Deref for Boxed<T, MM>
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> Deref for Boxed<T, MM>
type Target = T
The resulting type after dereferencing.
ⓘImportant traits for &'a mut Rfn deref(&self) -> &T
[src]
fn deref(&self) -> &T
Dereferences the value.
impl<T: 'static, MM: BoxedMemoryManager<T>> DerefMut for Boxed<T, MM>
[src]
impl<T: 'static, MM: BoxedMemoryManager<T>> DerefMut for Boxed<T, MM>