Struct liquid::partials::EagerCompiler
source · pub struct EagerCompiler<S>where
S: PartialSource,{ /* private fields */ }
Expand description
An eagerly-caching compiler for PartialSource
.
This would be useful in cases where:
- Most partial-templates are used
- Of the used partial-templates, they are generally used many times.
Note: partial-compilation error reporting is deferred to render-time so content can still be generated even when the content is in an intermediate-state.
Implementations§
source§impl<S> EagerCompiler<S>where
S: PartialSource,
impl<S> EagerCompiler<S>where S: PartialSource,
sourcepub fn new(source: S) -> EagerCompiler<S>
pub fn new(source: S) -> EagerCompiler<S>
Create an on-demand compiler for PartialSource
.
source§impl<S> EagerCompiler<S>where
S: PartialSource + Default,
impl<S> EagerCompiler<S>where S: PartialSource + Default,
sourcepub fn empty() -> EagerCompiler<S>
pub fn empty() -> EagerCompiler<S>
Create an empty compiler for PartialSource
.
Trait Implementations§
source§impl<S> Debug for EagerCompiler<S>where
S: Debug + PartialSource,
impl<S> Debug for EagerCompiler<S>where S: Debug + PartialSource,
source§impl<S> Default for EagerCompiler<S>where
S: PartialSource + Default,
impl<S> Default for EagerCompiler<S>where S: PartialSource + Default,
source§fn default() -> EagerCompiler<S>
fn default() -> EagerCompiler<S>
Returns the “default value” for a type. Read more
source§impl<S> Deref for EagerCompiler<S>where
S: PartialSource,
impl<S> Deref for EagerCompiler<S>where S: PartialSource,
source§impl<S> DerefMut for EagerCompiler<S>where
S: PartialSource,
impl<S> DerefMut for EagerCompiler<S>where S: PartialSource,
source§impl<S> PartialCompiler for EagerCompiler<S>where
S: PartialSource + Send + Sync + 'static,
impl<S> PartialCompiler for EagerCompiler<S>where S: PartialSource + Send + Sync + 'static,
Auto Trait Implementations§
impl<S> RefUnwindSafe for EagerCompiler<S>where S: RefUnwindSafe,
impl<S> Send for EagerCompiler<S>where S: Send,
impl<S> Sync for EagerCompiler<S>where S: Sync,
impl<S> Unpin for EagerCompiler<S>where S: Unpin,
impl<S> UnwindSafe for EagerCompiler<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