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

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

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

impl ParserOptions[src]

pub fn new(file_name: String, line_offset: usize, byte_offset: usize) -> Self[src]

Create parser options using the given file_name.

Trait Implementations

impl Debug for ParserOptions[src]

impl Default for ParserOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.