Struct mdbook::preprocess::LinkPreprocessor[][src]

pub struct LinkPreprocessor;
Expand description

A preprocessor for expanding helpers in a chapter. Supported helpers are:

  • {{# include}} - Insert an external file of any type. Include the whole file, only particular . lines, or only between the specified anchors.
  • {{# rustdoc_include}} - Insert an external Rust file, showing the particular lines . specified or the lines between specified anchors, and include the rest of the file behind #. This hides the lines from initial display but shows them when the reader expands the code block and provides them to Rustdoc for testing.
  • {{# playground}} - Insert runnable Rust files
  • {{# title}} - Override <title> of a webpage.

Implementations

Create a new LinkPreprocessor.

Trait Implementations

Returns the “default value” for a type. Read more

Get the Preprocessor’s name.

Run this Preprocessor, allowing it to update the book before it is given to a renderer. Read more

A hint to MDBook whether this preprocessor is compatible with a particular renderer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.