[−][src]Struct liquid::partials::LazyCompiler
An lazily-caching compiler for PartialSource
.
This would be useful in cases where:
- Most partial-templates aren't 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> LazyCompiler<S> where
S: PartialSource,
[src]
S: PartialSource,
pub fn new(source: S) -> LazyCompiler<S>
[src]
Create an on-demand compiler for PartialSource
.
impl<S> LazyCompiler<S> where
S: PartialSource + Default,
[src]
S: PartialSource + Default,
pub fn empty() -> LazyCompiler<S>
[src]
Create an empty compiler for PartialSource
.
Trait Implementations
impl<S> Debug for LazyCompiler<S> where
S: PartialSource + Debug,
[src]
S: PartialSource + Debug,
impl<S> Default for LazyCompiler<S> where
S: PartialSource + Default,
[src]
S: PartialSource + Default,
fn default() -> LazyCompiler<S>
[src]
impl<S> Deref for LazyCompiler<S> where
S: PartialSource,
[src]
S: PartialSource,
impl<S> DerefMut for LazyCompiler<S> where
S: PartialSource,
[src]
S: PartialSource,
impl<S> PartialCompiler for LazyCompiler<S> where
S: PartialSource + Send + Sync + 'static,
[src]
S: PartialSource + Send + Sync + 'static,
Auto Trait Implementations
impl<S> RefUnwindSafe for LazyCompiler<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for LazyCompiler<S> where
S: Send,
S: Send,
impl<S> Sync for LazyCompiler<S> where
S: Sync,
S: Sync,
impl<S> Unpin for LazyCompiler<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for LazyCompiler<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>,