Enum pavex::time::error::InvalidFormatDescription
#[non_exhaustive]pub enum InvalidFormatDescription {
UnclosedOpeningBracket {
index: usize,
},
InvalidComponentName {
name: String,
index: usize,
},
InvalidModifier {
value: String,
index: usize,
},
MissingComponentName {
index: usize,
},
MissingRequiredModifier {
name: &'static str,
index: usize,
},
Expected {
what: &'static str,
index: usize,
},
NotSupported {
what: &'static str,
context: &'static str,
index: usize,
},
}
Expand description
The format description provided was not valid.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnclosedOpeningBracket
There was a bracket pair that was opened but not closed.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
InvalidComponentName
A component name is not valid.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
InvalidModifier
A modifier is not valid.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
MissingComponentName
A component name is missing.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
MissingRequiredModifier
A required modifier is missing.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Expected
Something was expected, but not found.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
NotSupported
Certain behavior is not supported in the given context.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Trait Implementations§
§impl Clone for InvalidFormatDescription
impl Clone for InvalidFormatDescription
§fn clone(&self) -> InvalidFormatDescription
fn clone(&self) -> InvalidFormatDescription
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for InvalidFormatDescription
impl Debug for InvalidFormatDescription
§impl Display for InvalidFormatDescription
impl Display for InvalidFormatDescription
§impl Error for InvalidFormatDescription
impl Error for InvalidFormatDescription
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()
§impl From<Error> for InvalidFormatDescription
impl From<Error> for InvalidFormatDescription
§fn from(error: Error) -> InvalidFormatDescription
fn from(error: Error) -> InvalidFormatDescription
Converts to this type from the input type.
§impl From<InvalidFormatDescription> for Error
impl From<InvalidFormatDescription> for Error
§fn from(original: InvalidFormatDescription) -> Error
fn from(original: InvalidFormatDescription) -> Error
Converts to this type from the input type.
§impl PartialEq for InvalidFormatDescription
impl PartialEq for InvalidFormatDescription
§impl 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.
§fn 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 StructuralPartialEq for InvalidFormatDescription
Auto Trait Implementations§
impl Freeze for InvalidFormatDescription
impl RefUnwindSafe for InvalidFormatDescription
impl Send for InvalidFormatDescription
impl Sync for InvalidFormatDescription
impl Unpin for InvalidFormatDescription
impl UnwindSafe for InvalidFormatDescription
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.