Struct glib::shared::Shared [−][src]
pub struct Shared<T, MM: SharedMemoryManager<T>> { /* fields omitted */ }
Encapsulates memory management logic for shared types.
Trait Implementations
impl<T, MM: SharedMemoryManager<T>> Drop for Shared<T, MM>
[src]
impl<T, MM: SharedMemoryManager<T>> Drop for Shared<T, MM>
impl<T, MM: SharedMemoryManager<T>> Clone for Shared<T, MM>
[src]
impl<T, MM: SharedMemoryManager<T>> Clone for Shared<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, MM: SharedMemoryManager<T>> Debug for Shared<T, MM>
[src]
impl<T, MM: SharedMemoryManager<T>> Debug for Shared<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: SharedMemoryManager<T>> PartialOrd for Shared<T, MM>
[src]
impl<T, MM: SharedMemoryManager<T>> PartialOrd for Shared<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: SharedMemoryManager<T>> Ord for Shared<T, MM>
[src]
impl<T, MM: SharedMemoryManager<T>> Ord for Shared<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: SharedMemoryManager<T>> PartialEq for Shared<T, MM>
[src]
impl<T, MM: SharedMemoryManager<T>> PartialEq for Shared<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: SharedMemoryManager<T>> Eq for Shared<T, MM>
[src]
impl<T, MM: SharedMemoryManager<T>> Eq for Shared<T, MM>
impl<T, MM: SharedMemoryManager<T>> Hash for Shared<T, MM>
[src]
impl<T, MM: SharedMemoryManager<T>> Hash for Shared<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<'a, T: 'static, MM> ToGlibPtr<'a, *mut T> for Shared<T, MM> where
MM: SharedMemoryManager<T> + 'static,
[src]
impl<'a, T: 'static, MM> ToGlibPtr<'a, *mut T> for Shared<T, MM> where
MM: SharedMemoryManager<T> + 'static,
type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *mut T, Self>
[src]
fn to_glib_none(&'a self) -> Stash<'a, *mut T, Self>
Transfer: none. Read more
fn to_glib_full(&self) -> *mut T
[src]
fn to_glib_full(&self) -> *mut 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<T: 'static, MM: SharedMemoryManager<T>> FromGlibPtrNone<*mut T> for Shared<T, MM>
[src]
impl<T: 'static, MM: SharedMemoryManager<T>> FromGlibPtrNone<*mut T> for Shared<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: SharedMemoryManager<T>> FromGlibPtrNone<*const T> for Shared<T, MM>
[src]
impl<T: 'static, MM: SharedMemoryManager<T>> FromGlibPtrNone<*const T> for Shared<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: SharedMemoryManager<T>> FromGlibPtrFull<*mut T> for Shared<T, MM>
[src]
impl<T: 'static, MM: SharedMemoryManager<T>> FromGlibPtrFull<*mut T> for Shared<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: SharedMemoryManager<T>> FromGlibPtrBorrow<*mut T> for Shared<T, MM>
[src]
impl<T: 'static, MM: SharedMemoryManager<T>> FromGlibPtrBorrow<*mut T> for Shared<T, MM>
unsafe fn from_glib_borrow(ptr: *mut T) -> Self
[src]
unsafe fn from_glib_borrow(ptr: *mut T) -> Self