[−][src]Struct bracket::parser::ParserOptions
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
impl RefUnwindSafe for ParserOptions
impl Send for ParserOptions
impl Sync for ParserOptions
impl Unpin for ParserOptions
impl UnwindSafe for ParserOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,