#[non_exhaustive]pub enum TemplateFault {
UnterminatedIdentifier,
UnknownIdentifier,
FormatOnRepresentationId,
BadFormatTag,
WidthTooLarge,
NumberAndTime,
MissingNumberOrTime,
DynamicIdentifierInInitialization,
}Expand description
Why a template is invalid.
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.
UnterminatedIdentifier
A $ with no closing $.
UnknownIdentifier
$name$ where name is not in Table 21.
FormatOnRepresentationId
A format tag on $RepresentationID$, which takes none.
BadFormatTag
A format tag that is not %0<width>d.
WidthTooLarge
A width above the supported maximum.
NumberAndTime
$Number$ and $Time$ in one template.
MissingNumberOrTime
A media template with neither $Number$ nor $Time$.
DynamicIdentifierInInitialization
An @initialization template containing $Number$ or $Time$.
Implementations§
Trait Implementations§
Source§impl Clone for TemplateFault
impl Clone for TemplateFault
impl Copy for TemplateFault
Source§impl Debug for TemplateFault
impl Debug for TemplateFault
Source§impl Display for TemplateFault
impl Display for TemplateFault
impl Eq for TemplateFault
Source§impl PartialEq for TemplateFault
impl PartialEq for TemplateFault
impl StructuralPartialEq for TemplateFault
Auto Trait Implementations§
impl Freeze for TemplateFault
impl RefUnwindSafe for TemplateFault
impl Send for TemplateFault
impl Sync for TemplateFault
impl Unpin for TemplateFault
impl UnsafeUnpin for TemplateFault
impl UnwindSafe for TemplateFault
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