Enum twig::error::CastError
[−]
[src]
pub enum CastError { FloatIsInfinite(f64), FloatNotANumber(f64), FloatRange(f64), Null, Array, Hash, Object, Function, StringEmpty, StringNotNumerical(String), }
Variants
FloatIsInfinite(f64)
Float is infinite, target can not be infinite.
FloatNotANumber(f64)
Float is not a number, target has to be a number.
FloatRange(f64)
Float can not be represented, target does not support the range.
Null
Null can not be represented.
Array
Target can not be created from Array.
Hash
Target is not be created from Hash.
Object
Target is not be created from Object.
Function
Target is not be created from Function.
StringEmpty
Empty string can not be represented.
StringNotNumerical(String)
String could not be parsed as number.
Trait Implementations
impl Clone for CastError
[src]
fn clone(&self) -> CastError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more