pub struct BorrowedObject<'a, T> { /* private fields */ }
Expand description
Borrowed reference to an object of type T
.
This dereferences into &T
.
Implementations§
Source§impl<'a, T: ObjectType> BorrowedObject<'a, T>
impl<'a, T: ObjectType> BorrowedObject<'a, T>
Trait Implementations§
Source§impl<T> AsRef<T> for BorrowedObject<'_, T>
impl<T> AsRef<T> for BorrowedObject<'_, T>
Source§impl<'a, T: Debug> Debug for BorrowedObject<'a, T>
impl<'a, T: Debug> Debug for BorrowedObject<'a, T>
Source§impl<T> Deref for BorrowedObject<'_, T>
impl<T> Deref for BorrowedObject<'_, T>
Source§impl<T: Downgrade + ObjectType> Downgrade for BorrowedObject<'_, T>
impl<T: Downgrade + ObjectType> Downgrade for BorrowedObject<'_, T>
Source§impl<'a, T: Hash> Hash for BorrowedObject<'a, T>
impl<'a, T: Hash> Hash for BorrowedObject<'a, T>
Source§impl<'a, T: Ord> Ord for BorrowedObject<'a, T>
impl<'a, T: Ord> Ord for BorrowedObject<'a, T>
Source§fn cmp(&self, other: &BorrowedObject<'a, T>) -> Ordering
fn cmp(&self, other: &BorrowedObject<'a, T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq<T> for BorrowedObject<'_, T>
impl<T: PartialEq> PartialEq<T> for BorrowedObject<'_, T>
Source§impl<'a, T: PartialEq> PartialEq for BorrowedObject<'a, T>
impl<'a, T: PartialEq> PartialEq for BorrowedObject<'a, T>
Source§impl<T: PartialOrd> PartialOrd<T> for BorrowedObject<'_, T>
impl<T: PartialOrd> PartialOrd<T> for BorrowedObject<'_, T>
Source§impl<'a, T: PartialOrd> PartialOrd for BorrowedObject<'a, T>
impl<'a, T: PartialOrd> PartialOrd for BorrowedObject<'a, T>
impl<'a, T: Eq> Eq for BorrowedObject<'a, T>
impl<T: Send + Sync> Send for BorrowedObject<'_, T>
impl<'a, T> StructuralPartialEq for BorrowedObject<'a, T>
impl<T: Send + Sync> Sync for BorrowedObject<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for BorrowedObject<'a, T>
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§
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