pub enum TemplateError {
Show 16 variants
NoValues,
DuplicateValue(String),
InvalidValue {
line: usize,
message: String,
},
InvalidRegex {
pattern: String,
message: String,
},
MissingStartState,
DuplicateState(String),
InvalidStateName {
name: String,
reason: String,
},
UndefinedState(String),
NonEmptyEndState,
NonEmptyEofState,
InvalidRule {
line: usize,
message: String,
},
ContinueWithTransition(usize),
UnknownOption(String),
DuplicateOption(String),
ExpectedBlankLine(usize),
InvalidSubstitution {
line: usize,
message: String,
},
}Expand description
Errors that occur when parsing a template file.
Variants§
NoValues
DuplicateValue(String)
InvalidValue
InvalidRegex
MissingStartState
DuplicateState(String)
InvalidStateName
UndefinedState(String)
NonEmptyEndState
NonEmptyEofState
InvalidRule
ContinueWithTransition(usize)
UnknownOption(String)
DuplicateOption(String)
ExpectedBlankLine(usize)
InvalidSubstitution
Trait Implementations§
Source§impl Clone for TemplateError
impl Clone for TemplateError
Source§fn clone(&self) -> TemplateError
fn clone(&self) -> TemplateError
Returns a duplicate 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 TemplateError
impl Debug for TemplateError
Source§impl Display for TemplateError
impl Display for TemplateError
Source§impl Error for TemplateError
impl Error for TemplateError
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()
Source§impl From<TemplateError> for TextFsmError
impl From<TemplateError> for TextFsmError
Source§fn from(source: TemplateError) -> Self
fn from(source: TemplateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TemplateError
impl PartialEq for TemplateError
impl StructuralPartialEq for TemplateError
Auto Trait Implementations§
impl Freeze for TemplateError
impl RefUnwindSafe for TemplateError
impl Send for TemplateError
impl Sync for TemplateError
impl Unpin for TemplateError
impl UnwindSafe for TemplateError
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