[−][src]Struct glib::shared::Shared
Encapsulates memory management logic for shared types.
Trait Implementations
impl<T, MM: SharedMemoryManager<T>> Clone for Shared<T, MM>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T, MM: SharedMemoryManager<T>> Debug for Shared<T, MM>
[src]
impl<T, MM: SharedMemoryManager<T>> Drop for Shared<T, MM>
[src]
impl<T, MM: SharedMemoryManager<T>> Eq for Shared<T, MM>
[src]
impl<T: 'static, MM: SharedMemoryManager<T>> FromGlibPtrBorrow<*mut T> for Shared<T, MM>
[src]
unsafe fn from_glib_borrow(ptr: *mut T) -> Self
[src]
impl<T: 'static, MM: SharedMemoryManager<T>> FromGlibPtrFull<*mut T> for Shared<T, MM>
[src]
unsafe fn from_glib_full(ptr: *mut T) -> Self
[src]
impl<T: 'static, MM: SharedMemoryManager<T>> FromGlibPtrNone<*const T> for Shared<T, MM>
[src]
unsafe fn from_glib_none(ptr: *const T) -> Self
[src]
impl<T: 'static, MM: SharedMemoryManager<T>> FromGlibPtrNone<*mut T> for Shared<T, MM>
[src]
unsafe fn from_glib_none(ptr: *mut T) -> Self
[src]
impl<T, MM: SharedMemoryManager<T>> Hash for Shared<T, MM>
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T, MM: SharedMemoryManager<T>> Ord for Shared<T, MM>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T, MM: SharedMemoryManager<T>> PartialEq<Shared<T, MM>> for Shared<T, MM>
[src]
impl<T, MM: SharedMemoryManager<T>> PartialOrd<Shared<T, MM>> for Shared<T, MM>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, T: 'static, MM> ToGlibPtr<'a, *mut T> for Shared<T, MM> where
MM: SharedMemoryManager<T> + 'static,
[src]
MM: SharedMemoryManager<T> + 'static,
type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *mut T, Self>
[src]
fn to_glib_full(&self) -> *mut T
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
Auto Trait Implementations
impl<T, MM> RefUnwindSafe for Shared<T, MM> where
MM: RefUnwindSafe,
T: RefUnwindSafe,
MM: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, MM> !Send for Shared<T, MM>
impl<T, MM> !Sync for Shared<T, MM>
impl<T, MM> Unpin for Shared<T, MM>
impl<T, MM> UnwindSafe for Shared<T, MM> where
MM: RefUnwindSafe,
T: RefUnwindSafe,
MM: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,