pub enum TransformerError {
InvalidSyntax(String, String),
UnknownTranformer(String, String),
TooManyArguments(&'static str, usize, usize),
TooFewArguments(&'static str, usize, usize),
InvalidValueType(&'static str, &'static str),
InvalidArgumentType(&'static str, String, &'static str),
}
Expand description
Errors for the transformers
Variants§
InvalidSyntax(String, String)
the Syntax is invalid
UnknownTranformer(String, String)
The transformer with the name doesn’t exist
TooManyArguments(&'static str, usize, usize)
Number of arguments is more than required
TooFewArguments(&'static str, usize, usize)
Not enough arguments for the transformer
InvalidValueType(&'static str, &'static str)
The transformer cannot transform the given type
InvalidArgumentType(&'static str, String, &'static str)
The argument provided is not the correct type
Trait Implementations§
source§impl Debug for TransformerError
impl Debug for TransformerError
source§impl Display for TransformerError
impl Display for TransformerError
source§impl Error for TransformerError
impl Error for TransformerError
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<TransformerError> for RenderTemplateError
impl From<TransformerError> for RenderTemplateError
source§fn from(item: TransformerError) -> Self
fn from(item: TransformerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TransformerError
impl Send for TransformerError
impl Sync for TransformerError
impl Unpin for TransformerError
impl UnwindSafe for TransformerError
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