Struct rustdoc::html::layout::PageLayout

source ·
struct PageLayout<'a> {
    static_root_path: String,
    page: &'a Page<'a>,
    layout: &'a Layout,
    files: &'static StaticFiles,
    themes: Vec<String>,
    sidebar: String,
    content: String,
    krate_with_trailing_slash: String,
    pub(crate) rustdoc_version: &'a str,
}

Fields§

§static_root_path: String§page: &'a Page<'a>§layout: &'a Layout§files: &'static StaticFiles§themes: Vec<String>§sidebar: String§content: String§krate_with_trailing_slash: String§rustdoc_version: &'a str

Trait Implementations§

Formats the value using the given formatter. Read more
Renders the template to the given writer buffer
The template’s extension, if provided
Provides a conservative estimate of the expanded length of the rendered template
Helper method which allocates a new String and renders into it

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
Helper method which allocates a new String and renders into it
Renders the template to the given writer buffer
Helper function to inspect the template’s extension
Provides a conservative estimate of the expanded length of the rendered template

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 160 bytes