Struct liquid::ParserBuilder
source · pub struct ParserBuilder<P = EagerCompiler<InMemorySource>>where
P: PartialCompiler,{ /* private fields */ }
Implementations§
source§impl ParserBuilder<EagerCompiler<InMemorySource>>
impl ParserBuilder<EagerCompiler<InMemorySource>>
pub fn with_stdlib() -> Self
Available on crate feature
stdlib
only.source§impl<P> ParserBuilder<P>where
P: PartialCompiler,
impl<P> ParserBuilder<P>where P: PartialCompiler,
sourcepub fn stdlib(self) -> Self
Available on crate feature stdlib
only.
pub fn stdlib(self) -> Self
stdlib
only.Create a Liquid parser with built-in Liquid features
sourcepub fn block<B: Into<Box<dyn ParseBlock>>>(self, block: B) -> Self
pub fn block<B: Into<Box<dyn ParseBlock>>>(self, block: B) -> Self
Inserts a new custom block into the parser
sourcepub fn tag<T: Into<Box<dyn ParseTag>>>(self, tag: T) -> Self
pub fn tag<T: Into<Box<dyn ParseTag>>>(self, tag: T) -> Self
Inserts a new custom tag into the parser
sourcepub fn filter<F: Into<Box<dyn ParseFilter>>>(self, filter: F) -> Self
pub fn filter<F: Into<Box<dyn ParseFilter>>>(self, filter: F) -> Self
Inserts a new custom filter into the parser
sourcepub fn partials<N: PartialCompiler>(self, partials: N) -> ParserBuilder<N>
pub fn partials<N: PartialCompiler>(self, partials: N) -> ParserBuilder<N>
Set which partial-templates will be available.
Trait Implementations§
source§impl<P> Default for ParserBuilder<P>where
P: PartialCompiler,
impl<P> Default for ParserBuilder<P>where P: PartialCompiler,
source§impl<P> ParserReflection for ParserBuilder<P>where
P: PartialCompiler,
impl<P> ParserReflection for ParserBuilder<P>where P: PartialCompiler,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more