pub enum SetMode<'s> {
Value(Mode),
Str(&'s str),
}
Expand description
Types that convert to this type can be used with set_mode
methods.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for SetMode<'s>
impl<'s> RefUnwindSafe for SetMode<'s>
impl<'s> Send for SetMode<'s>
impl<'s> Sync for SetMode<'s>
impl<'s> Unpin for SetMode<'s>
impl<'s> UnwindSafe for SetMode<'s>
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