#[repr(transparent)]pub struct TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>, { /* private fields */ }
Implementations
sourceimpl<T> TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
impl<T> TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
Trait Implementations
sourceimpl<T: Debug> Debug for TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
impl<T: Debug> Debug for TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
sourceimpl<T> Default for TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
impl<T> Default for TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
sourceimpl<T> Deref for TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
impl<T> Deref for TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
sourcefn deref(&self) -> &Self::Target
fn deref(&self) -> &Self::Target
Safety
Since the template child may not be properly bound, this cast is potentially dangerous if, for example, the template child isn’t bound or is of the wrong type. The caller is responsible for ensuring that the template child is bound and of the right type.
type Target = T
type Target = T
The resulting type after dereferencing.
sourceimpl<T: PartialEq> PartialEq<TemplateChild<T>> for TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
impl<T: PartialEq> PartialEq<TemplateChild<T>> for TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
sourcefn eq(&self, other: &TemplateChild<T>) -> bool
fn eq(&self, other: &TemplateChild<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TemplateChild<T>) -> bool
fn ne(&self, other: &TemplateChild<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
impl<T> StructuralEq for TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
impl<T> StructuralPartialEq for TemplateChild<T> where
T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType>,
Auto Trait Implementations
impl<T> RefUnwindSafe for TemplateChild<T> where
<T as ObjectType>::GlibType: RefUnwindSafe,
impl<T> !Send for TemplateChild<T>
impl<T> !Sync for TemplateChild<T>
impl<T> Unpin for TemplateChild<T>
impl<T> UnwindSafe for TemplateChild<T> where
<T as ObjectType>::GlibType: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more