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> Freeze for ParserBuilder<P>where
P: Freeze,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more