pub struct Handle<T: ?Sized> { /* private fields */ }
Expand description
A handle pointing to an object of type T
. Can be used along with the ObjectStore
that
provided the handle to get a &T
. Can be cast into handles for anything that the underlying
type is Castable
into.
Trait Implementations
sourceimpl<T> Ord for Handle<T> where
T: ?Sized,
impl<T> Ord for Handle<T> where
T: ?Sized,
sourceimpl<T> PartialOrd<Handle<T>> for Handle<T> where
T: ?Sized,
impl<T> PartialOrd<Handle<T>> for Handle<T> where
T: ?Sized,
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> Copy for Handle<T> where
T: ?Sized,
impl<T> Eq for Handle<T> where
T: ?Sized,
impl<T: ?Sized + 'static> Send for Handle<T>
impl<T: ?Sized + 'static> Sync for Handle<T>
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Handle<T> where
T: RefUnwindSafe,
impl<T: ?Sized> Unpin for Handle<T>
impl<T: ?Sized> UnwindSafe for Handle<T> where
T: 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