rustdoc::html::render::write_shared

Type Alias CratesIndexPart

Source
type CratesIndexPart = Part<CratesIndex, String>;

Aliased Type§

struct CratesIndexPart {
    _artifact: PhantomData<CratesIndex>,
    item: String,
}

Fields§

§_artifact: PhantomData<CratesIndex>§item: String

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: 24 bytes

Implementations

Source§

impl Part<CratesIndex, String>

Source

fn blank(cx: &Context<'_>) -> SortedTemplate<<Self as CciPart>::FileFormat>

Source

fn get( crate_name: &str, external_crates: &[String], ) -> Result<PartsAndLocations<Self>, Error>

Might return parts that are duplicate with ones in prexisting index.html

Trait Implementations

Source§

impl CciPart for Part<CratesIndex, String>

Source§

type FileFormat = Html

Identifies the file format of the cross-crate information
Source§

fn from_crate_info(crate_info: &CrateInfo) -> &PartsAndLocations<Self>

Source§

impl<T: Clone, U: Clone> Clone for Part<T, U>

Source§

fn clone(&self) -> Part<T, U>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug, U: Debug> Debug for Part<T, U>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, T, U> Deserialize<'de> for Part<T, U>
where U: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<T, U: Display> Display for Part<T, U>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Writes serialized JSON

Source§

impl<T, U> Serialize for Part<T, U>
where U: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more