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

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

Variants

Float is infinite, target can not be infinite.

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

Float can not be represented, target does not support the range.

Null can not be represented.

Target can not be created from Array.

Target is not be created from Hash.

Target is not be created from Object.

Target is not be created from Function.

Empty string can not be represented.

String could not be parsed as number.

Trait Implementations

impl Clone for CastError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CastError
[src]

Formats the value using the given formatter.

impl Display for CastError
[src]

Formats the value using the given formatter. Read more