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

pub struct LinkPreprocessor;

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.
  • {{# playpen}} - Insert runnable Rust files

Methods

impl LinkPreprocessor[src]

pub fn new() -> Self[src]

Create a new LinkPreprocessor.

Trait Implementations

impl Preprocessor for LinkPreprocessor[src]

impl Default for LinkPreprocessor[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,