pub struct ChoiceError {
pub choices: &'static [&'static str],
}Expand description
The cause of an ErrorKind::InvalidChoice:
the value is not one of choices.
Fields§
§choices: &'static [&'static str]Every accepted spelling.
Trait Implementations§
Source§impl Clone for ChoiceError
impl Clone for ChoiceError
impl Copy for ChoiceError
Source§impl Debug for ChoiceError
impl Debug for ChoiceError
Source§impl Display for ChoiceError
impl Display for ChoiceError
impl Eq for ChoiceError
Source§impl Error for ChoiceError
impl Error for ChoiceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ChoiceError
impl PartialEq for ChoiceError
impl StructuralPartialEq for ChoiceError
Auto Trait Implementations§
impl Freeze for ChoiceError
impl RefUnwindSafe for ChoiceError
impl Send for ChoiceError
impl Sync for ChoiceError
impl Unpin for ChoiceError
impl UnsafeUnpin for ChoiceError
impl UnwindSafe for ChoiceError
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