pub struct OnDemandCompiler<S>where
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,
Sourcepub fn new(source: S) -> OnDemandCompiler<S>
pub fn new(source: S) -> OnDemandCompiler<S>
Create an on-demand compiler for PartialSource.
Source§impl<S> OnDemandCompiler<S>where
S: PartialSource + Default,
impl<S> OnDemandCompiler<S>where
S: PartialSource + Default,
Sourcepub fn empty() -> OnDemandCompiler<S>
pub fn empty() -> OnDemandCompiler<S>
Create an empty compiler for PartialSource.
Trait Implementations§
Source§impl<S> Debug for OnDemandCompiler<S>where
S: Debug + PartialSource,
impl<S> Debug for OnDemandCompiler<S>where
S: Debug + PartialSource,
Source§impl<S> Default for OnDemandCompiler<S>where
S: PartialSource + Default,
impl<S> Default for OnDemandCompiler<S>where
S: PartialSource + Default,
Source§fn default() -> OnDemandCompiler<S>
fn default() -> OnDemandCompiler<S>
Returns the “default value” for a type. Read more
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