#[non_exhaustive]
pub enum InvalidFormatDescription {
UnclosedOpeningBracket {
index: usize,
},
InvalidComponentName {
name: String,
index: usize,
},
InvalidModifier {
value: String,
index: usize,
},
MissingComponentName {
index: usize,
},
}
cookies
only.Expand description
The format description provided was not valid.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
UnclosedOpeningBracket
Fields
This variant is marked as non-exhaustive
index: usize
The zero-based index of the opening bracket.
There was a bracket pair that was opened but not closed.
InvalidComponentName
Fields
This variant is marked as non-exhaustive
name: String
The name of the invalid component name.
index: usize
The zero-based index the component name starts at.
A component name is not valid.
InvalidModifier
Fields
This variant is marked as non-exhaustive
value: String
The value of the invalid modifier.
index: usize
The zero-based index the modifier starts at.
A modifier is not valid.
MissingComponentName
Fields
This variant is marked as non-exhaustive
index: usize
The zero-based index where the component name should start.
A component name is missing.
Trait Implementations
sourceimpl Clone for InvalidFormatDescription
impl Clone for InvalidFormatDescription
sourcefn clone(&self) -> InvalidFormatDescription
fn clone(&self) -> InvalidFormatDescription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InvalidFormatDescription
impl Debug for InvalidFormatDescription
sourceimpl Display for InvalidFormatDescription
impl Display for InvalidFormatDescription
sourceimpl Error for InvalidFormatDescription
impl Error for InvalidFormatDescription
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<InvalidFormatDescription> for Error
impl From<InvalidFormatDescription> for Error
sourcefn from(original: InvalidFormatDescription) -> Error
fn from(original: InvalidFormatDescription) -> Error
Converts to this type from the input type.
sourceimpl PartialEq<InvalidFormatDescription> for InvalidFormatDescription
impl PartialEq<InvalidFormatDescription> for InvalidFormatDescription
sourcefn eq(&self, other: &InvalidFormatDescription) -> bool
fn eq(&self, other: &InvalidFormatDescription) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InvalidFormatDescription) -> bool
fn ne(&self, other: &InvalidFormatDescription) -> bool
This method tests for !=
.
sourceimpl TryFrom<Error> for InvalidFormatDescription
impl TryFrom<Error> for InvalidFormatDescription
type Error = DifferentVariant
type Error = DifferentVariant
The type returned in the event of a conversion error.
sourcefn try_from(
err: Error
) -> Result<InvalidFormatDescription, <InvalidFormatDescription as TryFrom<Error>>::Error>
fn try_from(
err: Error
) -> Result<InvalidFormatDescription, <InvalidFormatDescription as TryFrom<Error>>::Error>
Performs the conversion.
impl Eq for InvalidFormatDescription
impl StructuralEq for InvalidFormatDescription
impl StructuralPartialEq for InvalidFormatDescription
Auto Trait Implementations
impl RefUnwindSafe for InvalidFormatDescription
impl Send for InvalidFormatDescription
impl Sync for InvalidFormatDescription
impl Unpin for InvalidFormatDescription
impl UnwindSafe for InvalidFormatDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more