pub struct ComparableListener { /* private fields */ }
Expand description
A wrapper type that allows comparing UListener
s to each other.
§Note
Not necessary for end-user uEs to use. Primarily intended for up-client-foo-rust
UPClient libraries
when implementing UTransport
.
§Rationale
The wrapper type is implemented such that it can be used in any location you may wish to
hold a type implementing UListener
.
Implements necessary traits to allow hashing, so that you may hold the wrapper type in
collections which require that, such as a HashMap
or HashSet
Implementations§
Trait Implementations§
Source§impl Clone for ComparableListener
impl Clone for ComparableListener
Source§fn clone(&self) -> ComparableListener
fn clone(&self) -> ComparableListener
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ComparableListener
impl Debug for ComparableListener
Source§impl Deref for ComparableListener
impl Deref for ComparableListener
Source§impl Hash for ComparableListener
impl Hash for ComparableListener
Source§impl PartialEq for ComparableListener
impl PartialEq for ComparableListener
impl Eq for ComparableListener
Auto Trait Implementations§
impl Freeze for ComparableListener
impl !RefUnwindSafe for ComparableListener
impl Send for ComparableListener
impl Sync for ComparableListener
impl Unpin for ComparableListener
impl !UnwindSafe for ComparableListener
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