[−][src]Struct liquid::ParserBuilder
Methods
impl ParserBuilder<EagerCompiler<InMemorySource>>
[src]
impl<P> ParserBuilder<P> where
P: PartialCompiler,
[src]
P: PartialCompiler,
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]
P: PartialCompiler,
impl<P> ParserReflection for ParserBuilder<P> where
P: PartialCompiler,
[src]
P: PartialCompiler,
fn blocks<'r>(&'r self) -> Box<dyn Iterator<Item = &dyn BlockReflection> + 'r>
[src]
fn tags<'r>(&'r self) -> Box<dyn Iterator<Item = &dyn TagReflection> + 'r>
[src]
fn filters<'r>(&'r self) -> Box<dyn Iterator<Item = &dyn FilterReflection> + 'r>
[src]
fn partials<'r>(&'r self) -> Box<dyn Iterator<Item = &str> + 'r>
[src]
Auto Trait Implementations
impl<P = EagerCompiler<InMemorySource>> !RefUnwindSafe for ParserBuilder<P>
impl<P> Send for ParserBuilder<P> where
P: Send,
P: Send,
impl<P> Sync for ParserBuilder<P> where
P: Sync,
P: Sync,
impl<P> Unpin for ParserBuilder<P> where
P: Unpin,
P: Unpin,
impl<P = EagerCompiler<InMemorySource>> !UnwindSafe for ParserBuilder<P>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
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.
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>,