Struct mdbook::preprocess::PreprocessorContext
source · pub struct PreprocessorContext {
pub root: PathBuf,
pub config: Config,
pub renderer: String,
pub mdbook_version: String,
/* private fields */
}
Expand description
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§
source§impl Clone for PreprocessorContext
impl Clone for PreprocessorContext
source§fn clone(&self) -> PreprocessorContext
fn clone(&self) -> PreprocessorContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PreprocessorContext
impl Debug for PreprocessorContext
source§impl<'de> Deserialize<'de> for PreprocessorContext
impl<'de> Deserialize<'de> for PreprocessorContext
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<PreprocessorContext> for PreprocessorContext
impl PartialEq<PreprocessorContext> for PreprocessorContext
source§fn eq(&self, other: &PreprocessorContext) -> bool
fn eq(&self, other: &PreprocessorContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.