pub enum Error {
Missing(String),
Extra(String),
Unclosed(usize),
}
Expand description
A single specific error
Variants§
Missing(String)
A key was found in the template but no value was provided
Holds the name of the offending key
Extra(String)
A key-value pair was given but never used in the template
Holds the name of the offending key
Unclosed(usize)
A key-begin delimeter was found but there was no matching key-close delimiter
Holds the zero-indexed byte position of the beginning of the opening delimiter
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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