pub struct OneOf(pub &'static [&'static str]);
Expand description
A structure that implements de::Expected
signaling that one of the types
in the slice was expected.
Tuple Fields
0: &'static [&'static str]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OneOf
impl Send for OneOf
impl Sync for OneOf
impl Unpin for OneOf
impl UnwindSafe for OneOf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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