Struct liquid_core::partials::OnDemandCompiler
source · pub struct OnDemandCompiler<S: PartialSource> { /* private fields */ }Expand description
An on-demand compiler for PartialSource.
This is unlikely the PartialCompiler you want. This best serves as an example.
This would be useful in cases where:
- Most partial-templates aren’t used
- Of the used partial-templates, they are generally used once.
Implementations§
source§impl<S> OnDemandCompiler<S>where
S: PartialSource,
impl<S> OnDemandCompiler<S>where
S: PartialSource,
source§impl<S> OnDemandCompiler<S>where
S: PartialSource + Default,
impl<S> OnDemandCompiler<S>where
S: PartialSource + Default,
Trait Implementations§
source§impl<S: Debug + PartialSource> Debug for OnDemandCompiler<S>
impl<S: Debug + PartialSource> Debug for OnDemandCompiler<S>
source§impl<S> Default for OnDemandCompiler<S>where
S: PartialSource + Default,
impl<S> Default for OnDemandCompiler<S>where
S: PartialSource + Default,
source§impl<S> Deref for OnDemandCompiler<S>where
S: PartialSource,
impl<S> Deref for OnDemandCompiler<S>where
S: PartialSource,
source§impl<S> DerefMut for OnDemandCompiler<S>where
S: PartialSource,
impl<S> DerefMut for OnDemandCompiler<S>where
S: PartialSource,
source§impl<S> PartialCompiler for OnDemandCompiler<S>
impl<S> PartialCompiler for OnDemandCompiler<S>
Auto Trait Implementations§
impl<S> Freeze for OnDemandCompiler<S>where
S: Freeze,
impl<S> RefUnwindSafe for OnDemandCompiler<S>where
S: RefUnwindSafe,
impl<S> Send for OnDemandCompiler<S>where
S: Send,
impl<S> Sync for OnDemandCompiler<S>where
S: Sync,
impl<S> Unpin for OnDemandCompiler<S>where
S: Unpin,
impl<S> UnwindSafe for OnDemandCompiler<S>where
S: UnwindSafe,
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