[][src]Struct mdbook_tera::TeraPreprocessor

pub struct TeraPreprocessor<C = StaticContextSource> { /* fields omitted */ }

A mdBook preprocessor that renders Tera.

Implementations

impl<C> TeraPreprocessor<C>[src]

pub fn new(context: C) -> Self[src]

Construct a Tera preprocessor given a context source.

pub fn include_templates<P>(
    &mut self,
    root: P,
    glob_str: &str
) -> Result<(), Error> where
    P: AsRef<Path>, 
[src]

Includes Tera templates given a glob pattern and a root directory.

pub fn tera_mut(&mut self) -> &mut Tera[src]

Returns a mutable reference to the internal Tera engine.

Trait Implementations

impl<C: Clone> Clone for TeraPreprocessor<C>[src]

impl<C: Default> Default for TeraPreprocessor<C>[src]

impl<C> Preprocessor for TeraPreprocessor<C> where
    C: ContextSource
[src]

Auto Trait Implementations

impl<C = StaticContextSource> !RefUnwindSafe for TeraPreprocessor<C>

impl<C> Send for TeraPreprocessor<C> where
    C: Send

impl<C> Sync for TeraPreprocessor<C> where
    C: Sync

impl<C> Unpin for TeraPreprocessor<C> where
    C: Unpin

impl<C = StaticContextSource> !UnwindSafe for TeraPreprocessor<C>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,