Enum time::error::InvalidFormatDescription  
source · #[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
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.
There was a bracket pair that was opened but not closed.
InvalidComponentName
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.
A component name is not valid.
InvalidModifier
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.
A modifier is not valid.
MissingComponentName
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.
A component name is missing.
MissingRequiredModifier
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.
A required modifier is missing.
Expected
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.
Something was expected, but not found.
NotSupported
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.
Certain behavior is not supported in the given context.
Trait Implementations§
source§impl Clone for InvalidFormatDescription
 
impl Clone for InvalidFormatDescription
source§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 moresource§impl Debug for InvalidFormatDescription
 
impl Debug for InvalidFormatDescription
source§impl Display for InvalidFormatDescription
 
impl Display for InvalidFormatDescription
source§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)>
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 From<InvalidFormatDescription> for Error
 
impl From<InvalidFormatDescription> for Error
source§fn from(original: InvalidFormatDescription) -> Self
 
fn from(original: InvalidFormatDescription) -> Self
Converts to this type from the input type.
source§impl PartialEq<InvalidFormatDescription> for InvalidFormatDescription
 
impl PartialEq<InvalidFormatDescription> for InvalidFormatDescription
source§fn 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 ==.