Enum rustdoc::html::render::write_shared::SharedResource[−][src]

enum SharedResource<'a> {
    Unversioned {
        name: &'static str,
    },
    ToolchainSpecific {
        basename: &'static str,
    },
    InvocationSpecific {
        basename: &'a str,
    },
}

Variants

Unversioned

This file will never change, no matter what toolchain is used to build it.

It does not have a resource suffix.

Fields of Unversioned

name: &'static str
ToolchainSpecific

This file may change depending on the toolchain.

It has a resource suffix.

Fields of ToolchainSpecific

basename: &'static str
InvocationSpecific

This file may change for any crate within a build, or based on the CLI arguments.

This differs from normal invocation-specific files because it has a resource suffix.

Fields of InvocationSpecific

basename: &'a str

Implementations

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.

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

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.

Layout

Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 24 bytes