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

impl SharedResource<'_>[src]

fn extension(&self) -> Option<&OsStr>[src]

fn path(&self, cx: &Context<'_>) -> PathBuf[src]

fn should_emit(&self, emit: &[EmitType]) -> bool[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SharedResource<'a>

impl<'a> Send for SharedResource<'a>

impl<'a> Sync for SharedResource<'a>

impl<'a> Unpin for SharedResource<'a>

impl<'a> UnwindSafe for SharedResource<'a>

Blanket Implementations

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

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

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

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithConstness for T[src]