Struct Boxed
pub struct Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,{ /* private fields */ }Expand description
Encapsulates memory management logic for boxed types.
Trait Implementations§
§impl<T, MM> Clone for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> Clone for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
§impl<T, MM> Debug for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> Debug for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
§impl<T, MM> Deref for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> Deref for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
§impl<T, MM> DerefMut for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> DerefMut for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
§impl<T, MM> Drop for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> Drop for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
§impl<T, MM> FromGlibPtrBorrow<*mut T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> FromGlibPtrBorrow<*mut T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
§impl<T, MM> FromGlibPtrFull<*const T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> FromGlibPtrFull<*const T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
§unsafe fn from_glib_full(ptr: *const T) -> Boxed<T, MM>
unsafe fn from_glib_full(ptr: *const T) -> Boxed<T, MM>
Safety Read more
§impl<T, MM> FromGlibPtrFull<*mut T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> FromGlibPtrFull<*mut T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
§unsafe fn from_glib_full(ptr: *mut T) -> Boxed<T, MM>
unsafe fn from_glib_full(ptr: *mut T) -> Boxed<T, MM>
Safety Read more
§impl<T, MM> FromGlibPtrNone<*const T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> FromGlibPtrNone<*const T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
§unsafe fn from_glib_none(ptr: *const T) -> Boxed<T, MM>
unsafe fn from_glib_none(ptr: *const T) -> Boxed<T, MM>
Safety Read more
§impl<T, MM> FromGlibPtrNone<*mut T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> FromGlibPtrNone<*mut T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
§unsafe fn from_glib_none(ptr: *mut T) -> Boxed<T, MM>
unsafe fn from_glib_none(ptr: *mut T) -> Boxed<T, MM>
Safety Read more
§impl<T, MM> Hash for Boxed<T, MM>where
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> Hash for Boxed<T, MM>where
MM: BoxedMemoryManager<Target = T>,
§impl<T, MM> Ord for Boxed<T, MM>where
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> Ord for Boxed<T, MM>where
MM: BoxedMemoryManager<Target = T>,
§impl<T, MM> PartialEq for Boxed<T, MM>where
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> PartialEq for Boxed<T, MM>where
MM: BoxedMemoryManager<Target = T>,
§impl<T, MM> PartialOrd for Boxed<T, MM>where
MM: BoxedMemoryManager<Target = T>,
impl<T, MM> PartialOrd for Boxed<T, MM>where
MM: BoxedMemoryManager<Target = T>,
§impl<'a, T, MM> ToGlibPtr<'a, *const T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<'a, T, MM> ToGlibPtr<'a, *const T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
type Storage = PhantomData<&'a Boxed<T, MM>>
§fn to_glib_full(&self) -> *const T
fn to_glib_full(&self) -> *const T
Transfer: full. Read more
§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
§impl<'a, T, MM> ToGlibPtrMut<'a, *mut T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
impl<'a, T, MM> ToGlibPtrMut<'a, *mut T> for Boxed<T, MM>where
T: 'static,
MM: BoxedMemoryManager<Target = T>,
type Storage = PhantomData<&'a mut Boxed<T, MM>>
impl<T, MM> Eq for Boxed<T, MM>where
MM: BoxedMemoryManager<Target = T>,
Auto Trait Implementations§
impl<T, MM> Freeze for Boxed<T, MM>
impl<T, MM> RefUnwindSafe for Boxed<T, MM>where
T: RefUnwindSafe,
MM: 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>
impl<T, MM> UnwindSafe for Boxed<T, MM>where
T: RefUnwindSafe,
MM: RefUnwindSafe,
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more