Enum rustdoc::html::render::write_shared::SharedResource [−][src]
enum SharedResource<'a> {
Unversioned {
name: &'static str,
},
ToolchainSpecific {
basename: &'static str,
},
InvocationSpecific {
basename: &'a str,
},
}Variants
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 strThis file may change depending on the toolchain.
It has a resource suffix.
Fields of ToolchainSpecific
basename: &'static strThis 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 strImplementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,