[][src]Struct mdbook::preprocess::PreprocessorContext

pub struct PreprocessorContext {
    pub root: PathBuf,
    pub config: Config,
    pub renderer: String,
    pub mdbook_version: String,
    // some fields omitted
}

Extra information for a Preprocessor to give them more context when processing a book.

Fields

root: PathBuf

The location of the book directory on disk.

config: Config

The book configuration (book.toml).

renderer: String

The Renderer this preprocessor is being used with.

mdbook_version: String

The calling mdbook version.

Trait Implementations

impl Clone for PreprocessorContext[src]

impl PartialEq<PreprocessorContext> for PreprocessorContext[src]

impl Debug for PreprocessorContext[src]

impl StructuralPartialEq for PreprocessorContext[src]

impl Serialize for PreprocessorContext[src]

impl<'de> Deserialize<'de> for PreprocessorContext[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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