Enum choices::error::ChoicesError [−][src]
pub enum ChoicesError { ParseError(String), Utf8Error(Utf8Error), FromUtf8Error(FromUtf8Error), TryFromSliceError(usize, usize), ParseIntError(ParseIntError), ParseFloatError(ParseFloatError), ParseBoolError(ParseBoolError), ParseCharError(ParseCharError), ValidationError(String), }
Error type for all kind of errors generated by choices
.
Variants
ParseError(String)
Generic parsing error.
Utf8Error(Utf8Error)
Error when attempting to interpret a sequence of u8 as a string.
FromUtf8Error(FromUtf8Error)
Error when converting a String from a UTF-8 byte vector.
Error when a conversion from slice to array fails.
ParseIntError(ParseIntError)
Error when parsing an integer.
ParseFloatError(ParseFloatError)
Error when parsing a float.
ParseBoolError(ParseBoolError)
Error when parsing a bool.
ParseCharError(ParseCharError)
Error when parsing a char.
ValidationError(String)
Error when validating a field.
Trait Implementations
impl Clone for ChoicesError
[src]
impl Clone for ChoicesError
[src]fn clone(&self) -> ChoicesError
[src]
fn clone(&self) -> ChoicesError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ChoicesError
[src]
impl Debug for ChoicesError
[src]impl Display for ChoicesError
[src]
impl Display for ChoicesError
[src]impl Error for ChoicesError
[src]
impl Error for ChoicesError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<FromUtf8Error> for ChoicesError
[src]
impl From<FromUtf8Error> for ChoicesError
[src]fn from(err: FromUtf8Error) -> Self
[src]
fn from(err: FromUtf8Error) -> Self
[src]Performs the conversion.
impl From<ParseBoolError> for ChoicesError
[src]
impl From<ParseBoolError> for ChoicesError
[src]fn from(err: ParseBoolError) -> Self
[src]
fn from(err: ParseBoolError) -> Self
[src]Performs the conversion.
impl From<ParseCharError> for ChoicesError
[src]
impl From<ParseCharError> for ChoicesError
[src]fn from(err: ParseCharError) -> Self
[src]
fn from(err: ParseCharError) -> Self
[src]Performs the conversion.
impl From<ParseFloatError> for ChoicesError
[src]
impl From<ParseFloatError> for ChoicesError
[src]fn from(err: ParseFloatError) -> Self
[src]
fn from(err: ParseFloatError) -> Self
[src]Performs the conversion.
impl From<ParseIntError> for ChoicesError
[src]
impl From<ParseIntError> for ChoicesError
[src]fn from(err: ParseIntError) -> Self
[src]
fn from(err: ParseIntError) -> Self
[src]Performs the conversion.
impl From<Utf8Error> for ChoicesError
[src]
impl From<Utf8Error> for ChoicesError
[src]impl PartialEq<ChoicesError> for ChoicesError
[src]
impl PartialEq<ChoicesError> for ChoicesError
[src]fn eq(&self, other: &ChoicesError) -> bool
[src]
fn eq(&self, other: &ChoicesError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ChoicesError) -> bool
[src]
fn ne(&self, other: &ChoicesError) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for ChoicesError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChoicesError
impl Send for ChoicesError
impl Sync for ChoicesError
impl Unpin for ChoicesError
impl UnwindSafe for ChoicesError
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,