pub struct UserBox(pub Box<dyn User>);Expand description
A wrapper for a boxed user implementing the User trait.
This struct provides implementations for Debug, Hash, PartialOrd, Ord, PartialEq, and Eq.
Tuple Fields§
§0: Box<dyn User>Trait Implementations§
Source§impl Ord for UserBox
impl Ord for UserBox
Source§impl PartialOrd for UserBox
impl PartialOrd for UserBox
impl Eq for UserBox
Auto Trait Implementations§
impl Freeze for UserBox
impl !RefUnwindSafe for UserBox
impl Send for UserBox
impl Sync for UserBox
impl Unpin for UserBox
impl !UnwindSafe for UserBox
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