Struct glib::subclass::ObjectImplRef
source · [−]pub struct ObjectImplRef<T: ObjectSubclass>(_);Expand description
Reference-counted wrapper around an ObjectSubclass reference.
This can be used for passing into closures as strong or weak reference without manually going from the implementation type to the instance type and back.
Implementations
sourceimpl<T: ObjectSubclass> ObjectImplRef<T>
impl<T: ObjectSubclass> ObjectImplRef<T>
sourcepub fn downgrade(&self) -> ObjectImplWeakRef<T>
pub fn downgrade(&self) -> ObjectImplWeakRef<T>
Downgrade to a weak reference.
This can be upgraded to a strong reference again via ObjectImplWeakRef::upgrade.
Trait Implementations
sourceimpl<T: ObjectSubclass> Clone for ObjectImplRef<T>
impl<T: ObjectSubclass> Clone for ObjectImplRef<T>
sourceimpl<T: ObjectSubclass> Debug for ObjectImplRef<T>
impl<T: ObjectSubclass> Debug for ObjectImplRef<T>
sourceimpl<T: ObjectSubclass> Deref for ObjectImplRef<T>
impl<T: ObjectSubclass> Deref for ObjectImplRef<T>
sourceimpl<T: ObjectSubclass> Downgrade for ObjectImplRef<T>
impl<T: ObjectSubclass> Downgrade for ObjectImplRef<T>
type Weak = ObjectImplWeakRef<T>
type Weak = ObjectImplWeakRef<T>
Weak reference type.
sourceimpl<T: ObjectSubclass> Hash for ObjectImplRef<T>
impl<T: ObjectSubclass> Hash for ObjectImplRef<T>
sourceimpl<T: ObjectSubclass> Ord for ObjectImplRef<T>
impl<T: ObjectSubclass> Ord for ObjectImplRef<T>
sourceimpl<T: ObjectSubclass, OT: ObjectType> PartialEq<OT> for ObjectImplRef<T> where
T::Type: PartialEq<OT>,
impl<T: ObjectSubclass, OT: ObjectType> PartialEq<OT> for ObjectImplRef<T> where
T::Type: PartialEq<OT>,
sourceimpl<T: ObjectSubclass> PartialEq<ObjectImplRef<T>> for ObjectImplRef<T>
impl<T: ObjectSubclass> PartialEq<ObjectImplRef<T>> for ObjectImplRef<T>
sourceimpl<T: ObjectSubclass, OT: ObjectType> PartialOrd<OT> for ObjectImplRef<T> where
T::Type: PartialOrd<OT>,
impl<T: ObjectSubclass, OT: ObjectType> PartialOrd<OT> for ObjectImplRef<T> where
T::Type: PartialOrd<OT>,
sourcefn partial_cmp(&self, other: &OT) -> Option<Ordering>
fn partial_cmp(&self, other: &OT) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
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
sourceimpl<T: ObjectSubclass> PartialOrd<ObjectImplRef<T>> for ObjectImplRef<T>
impl<T: ObjectSubclass> PartialOrd<ObjectImplRef<T>> for ObjectImplRef<T>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
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
impl<T: ObjectSubclass> Eq for ObjectImplRef<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ObjectImplRef<T> where
<T as ObjectSubclass>::Type: RefUnwindSafe,
impl<T> Send for ObjectImplRef<T> where
<T as ObjectSubclass>::Type: Send,
impl<T> Sync for ObjectImplRef<T> where
<T as ObjectSubclass>::Type: Sync,
impl<T> Unpin for ObjectImplRef<T> where
<T as ObjectSubclass>::Type: Unpin,
impl<T> UnwindSafe for ObjectImplRef<T> where
<T as ObjectSubclass>::Type: UnwindSafe,
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