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

A resource received a value of the wrong type.

A macro was called with the wrong number of arguments.

Accessed an index of a Hash that does not exist.

Accessed an attribute of an entity that does not exist.

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

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

Trait Implementations

impl Debug for ResolveError
[src]

Formats the value using the given formatter.