Impl in rustdoc::formats - Rust (original) (raw)

pub(crate) struct Impl {
    pub(crate) impl_item: Item,
}

Expand description

Metadata about implementations for a type or trait.

Source§

Source

Source

Source

This function is used to extract a DefId to be used as a key for the Cache::impls field.

It allows to prevent having duplicated implementations showing up (the biggest issue was with blanket impls).

It panics if self is a ItemId::Primitive.

Source

§

§

§

§

§

§

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