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
sourceimpl Clone for PreprocessorContext
impl Clone for PreprocessorContext
sourcefn clone(&self) -> PreprocessorContext
fn clone(&self) -> PreprocessorContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PreprocessorContext
impl Debug for PreprocessorContext
sourceimpl<'de> Deserialize<'de> for PreprocessorContext
impl<'de> Deserialize<'de> for PreprocessorContext
sourcefn 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
sourceimpl PartialEq<PreprocessorContext> for PreprocessorContext
impl PartialEq<PreprocessorContext> for PreprocessorContext
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PreprocessorContext) -> bool
fn ne(&self, other: &PreprocessorContext) -> bool
This method tests for !=
.
sourceimpl Serialize for PreprocessorContext
impl Serialize for PreprocessorContext
impl StructuralPartialEq for PreprocessorContext
Auto Trait Implementations
impl !RefUnwindSafe for PreprocessorContext
impl Send for PreprocessorContext
impl !Sync for PreprocessorContext
impl Unpin for PreprocessorContext
impl UnwindSafe for PreprocessorContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more