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 for PreprocessorContext
impl PartialEq for PreprocessorContext
Source§impl Serialize for PreprocessorContext
impl Serialize for PreprocessorContext
impl StructuralPartialEq for PreprocessorContext
Auto Trait Implementations§
impl !Freeze for PreprocessorContext
impl !RefUnwindSafe for PreprocessorContext
impl Send for PreprocessorContext
impl !Sync for PreprocessorContext
impl Unpin for PreprocessorContext
impl UnwindSafe for PreprocessorContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more