pub struct PreferOne;
Expand description
Use in combination with OneOrMany
. Emit single element for lists of size 1.
Trait Implementations§
impl Format for PreferOne
Use in combination with OneOrMany
. Emit single element for lists of size 1.
Auto Trait Implementations§
impl Freeze for PreferOne
impl RefUnwindSafe for PreferOne
impl Send for PreferOne
impl Sync for PreferOne
impl Unpin for PreferOne
impl UnwindSafe for PreferOne
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