[][src]Struct liquid::ParserBuilder

pub struct ParserBuilder<P = EagerCompiler<InMemorySource>> where
    P: PartialCompiler
{ /* fields omitted */ }

Methods

impl ParserBuilder<EagerCompiler<InMemorySource>>[src]

pub fn new() -> Self[src]

Create an empty Liquid parser

pub fn with_stdlib() -> Self[src]

impl<P> ParserBuilder<P> where
    P: PartialCompiler
[src]

pub fn stdlib(self) -> Self[src]

Create a Liquid parser with built-in Liquid features

pub fn block<B: Into<Box<dyn ParseBlock>>>(self, block: B) -> Self[src]

Inserts a new custom block into the parser

pub fn tag<T: Into<Box<dyn ParseTag>>>(self, tag: T) -> Self[src]

Inserts a new custom tag into the parser

pub fn filter<F: Into<Box<dyn ParseFilter>>>(self, filter: F) -> Self[src]

Inserts a new custom filter into the parser

pub fn partials<N: PartialCompiler>(self, partials: N) -> ParserBuilder<N>[src]

Set which partial-templates will be available.

pub fn build(self) -> Result<Parser>[src]

Create a parser

Trait Implementations

impl<P> Default for ParserBuilder<P> where
    P: PartialCompiler
[src]

impl<P> ParserReflection for ParserBuilder<P> where
    P: PartialCompiler
[src]

Auto Trait Implementations

impl<P = EagerCompiler<InMemorySource>> !RefUnwindSafe for ParserBuilder<P>

impl<P> Send for ParserBuilder<P> where
    P: Send

impl<P> Sync for ParserBuilder<P> where
    P: Sync

impl<P> Unpin for ParserBuilder<P> where
    P: Unpin

impl<P = EagerCompiler<InMemorySource>> !UnwindSafe for ParserBuilder<P>

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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.