Struct bracket::parser::ParserOptions[][src]

pub struct ParserOptions {
    pub file_name: String,
    pub line_offset: usize,
    pub byte_offset: usize,
}
Expand description

Set the file name used in error messages.

It is also possible to set the line and byte offsets if your template is being extracted from a larger document.

Fields

file_name: String

The name of a file for the template source being parsed.

line_offset: usize

A line offset into the file for error reporting, the first line has index zero.

byte_offset: usize

Byte offset into the source file.

Implementations

Create parser options using the given file_name.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.