Struct glib::object::BorrowedObject
source · [−]#[repr(transparent)]pub struct BorrowedObject<'a, T> { /* private fields */ }
Expand description
Borrowed reference to an object of type T
.
This dereferences into &T
.
Implementations
sourceimpl<'a, T: ObjectType> BorrowedObject<'a, T>
impl<'a, T: ObjectType> BorrowedObject<'a, T>
Trait Implementations
sourceimpl<'a, T> AsRef<T> for BorrowedObject<'a, T>
impl<'a, T> AsRef<T> for BorrowedObject<'a, T>
sourceimpl<'a, T: Debug> Debug for BorrowedObject<'a, T>
impl<'a, T: Debug> Debug for BorrowedObject<'a, T>
sourceimpl<'a, T> Deref for BorrowedObject<'a, T>
impl<'a, T> Deref for BorrowedObject<'a, T>
sourceimpl<'a, T: Downgrade + ObjectType> Downgrade for BorrowedObject<'a, T>
impl<'a, T: Downgrade + ObjectType> Downgrade for BorrowedObject<'a, T>
sourceimpl<'a, T: Hash> Hash for BorrowedObject<'a, T>
impl<'a, T: Hash> Hash for BorrowedObject<'a, T>
sourceimpl<'a, T: Ord> Ord for BorrowedObject<'a, T>
impl<'a, T: Ord> Ord for BorrowedObject<'a, T>
sourcefn cmp(&self, other: &BorrowedObject<'a, T>) -> Ordering
fn cmp(&self, other: &BorrowedObject<'a, T>) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a, T: PartialEq> PartialEq<BorrowedObject<'a, T>> for BorrowedObject<'a, T>
impl<'a, T: PartialEq> PartialEq<BorrowedObject<'a, T>> for BorrowedObject<'a, T>
sourcefn eq(&self, other: &BorrowedObject<'a, T>) -> bool
fn eq(&self, other: &BorrowedObject<'a, T>) -> bool
sourceimpl<'a, T: PartialEq> PartialEq<T> for BorrowedObject<'a, T>
impl<'a, T: PartialEq> PartialEq<T> for BorrowedObject<'a, T>
sourceimpl<'a, T: PartialOrd> PartialOrd<BorrowedObject<'a, T>> for BorrowedObject<'a, T>
impl<'a, T: PartialOrd> PartialOrd<BorrowedObject<'a, T>> for BorrowedObject<'a, T>
sourcefn partial_cmp(&self, other: &BorrowedObject<'a, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &BorrowedObject<'a, T>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl<'a, T: PartialOrd> PartialOrd<T> for BorrowedObject<'a, T>
impl<'a, T: PartialOrd> PartialOrd<T> for BorrowedObject<'a, T>
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moreimpl<'a, T: Eq> Eq for BorrowedObject<'a, T>
impl<'a, T: Send + Sync> Send for BorrowedObject<'a, T>
impl<'a, T> StructuralEq for BorrowedObject<'a, T>
impl<'a, T> StructuralPartialEq for BorrowedObject<'a, T>
impl<'a, T: Send + Sync> Sync for BorrowedObject<'a, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for BorrowedObject<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Unpin for BorrowedObject<'a, T>
impl<'a, T> UnwindSafe for BorrowedObject<'a, T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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