Struct mdbook::preprocess::PreprocessorContext [−][src]
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 Debug for PreprocessorContext
[src]
impl Debug for PreprocessorContext
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for PreprocessorContext
[src]
impl Clone for PreprocessorContext
fn clone(&self) -> PreprocessorContext
[src]
fn clone(&self) -> PreprocessorContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for PreprocessorContext
[src]
impl PartialEq for PreprocessorContext
fn eq(&self, other: &PreprocessorContext) -> bool
[src]
fn eq(&self, other: &PreprocessorContext) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PreprocessorContext) -> bool
[src]
fn ne(&self, other: &PreprocessorContext) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for PreprocessorContext
impl Send for PreprocessorContext
impl Sync for PreprocessorContext
impl Sync for PreprocessorContext