Enum twig::error::CastError [] [src]

pub enum CastError {
    FloatIsInfinite(f64),
    FloatNotANumber(f64),
    FloatRange(f64),
    Null,
    Array,
    Hash,
    Object,
    Function,
    StringEmpty,
    StringNotNumerical(String),
}

Variants

FloatIsInfinite

Float is infinite, target can not be infinite.

FloatNotANumber

Float is not a number, target has to be a number.

FloatRange

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 could not be parsed as number.

Trait Implementations

impl Display for CastError

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for CastError

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for CastError

fn clone(&self) -> CastError

fn clone_from(&mut self, source: &Self)