struct OneOf {
names: &'static [&'static str],
}
Expand description
Used in error messages.
- expected
a
- expected
a
orb
- expected one of
a
,b
,c
The slice of names must not be empty.
Fields§
§names: &'static [&'static str]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OneOf
impl RefUnwindSafe for OneOf
impl Send for OneOf
impl Sync for OneOf
impl Unpin for OneOf
impl UnwindSafe for OneOf
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