Enum l20n::ResolveError [] [src]

pub enum ResolveError {
    WrongType,
    WrongNumberOfArgs,
    MissingIndex,
    MissingAttr,
    MissingVar(String),
    MissingIdent(String),
}

Errors that can occur when resolving a set of l20n resources into strings. These errors are cause by problems in the l20n file, or incorrect Data provided when localizing.

Variants

WrongType

A resource received a value of the wrong type.

WrongNumberOfArgs

A macro was called with the wrong number of arguments.

MissingIndex

Accessed an index of a Hash that does not exist.

MissingAttr

Accessed an attribute of an entity that does not exist.

MissingVar(String)

Tried to use a $var that did not exist in the provided Data.

MissingIdent(String)

A string tried to use another string in the l20n resource that did not exist.

Trait Implementations

impl Debug for ResolveError
[src]

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

Formats the value using the given formatter.