[−][src]Struct liquid::partials::EagerCompiler
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.
Methods
impl<S> EagerCompiler<S> where
S: PartialSource,
[src]
S: PartialSource,
pub fn new(source: S) -> EagerCompiler<S>
[src]
Create an on-demand compiler for PartialSource
.
impl<S> EagerCompiler<S> where
S: PartialSource + Default,
[src]
S: PartialSource + Default,
pub fn empty() -> EagerCompiler<S>
[src]
Create an empty compiler for PartialSource
.
Trait Implementations
impl<S> Debug for EagerCompiler<S> where
S: PartialSource + Debug,
[src]
S: PartialSource + Debug,
impl<S> Default for EagerCompiler<S> where
S: PartialSource + Default,
[src]
S: PartialSource + Default,
fn default() -> EagerCompiler<S>
[src]
impl<S> Deref for EagerCompiler<S> where
S: PartialSource,
[src]
S: PartialSource,
impl<S> DerefMut for EagerCompiler<S> where
S: PartialSource,
[src]
S: PartialSource,
impl<S> PartialCompiler for EagerCompiler<S> where
S: PartialSource + Send + Sync + 'static,
[src]
S: PartialSource + Send + Sync + 'static,
Auto Trait Implementations
impl<S> RefUnwindSafe for EagerCompiler<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for EagerCompiler<S> where
S: Send,
S: Send,
impl<S> Sync for EagerCompiler<S> where
S: Sync,
S: Sync,
impl<S> Unpin for EagerCompiler<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for EagerCompiler<S> where
S: UnwindSafe,
S: UnwindSafe,
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>,