Enum rustdoc::clean::types::ItemId [−][src]
pub(crate) enum ItemId {
DefId(DefId),
Auto {
trait_: DefId,
for_: DefId,
},
Blanket {
impl_id: DefId,
for_: DefId,
},
Primitive(PrimitiveType, CrateNum),
}
Variants
DefId(DefId)
A “normal” item that uses a DefId
for identification.
Tuple Fields of DefId
0: DefId
Identifier that is used for auto traits.
Identifier that is used for blanket implementations.
Primitive(PrimitiveType, CrateNum)
Identifier for primitive types.
Tuple Fields of Primitive
0: PrimitiveType
1: CrateNum
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ItemId
impl UnwindSafe for ItemId
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
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: 20 bytes
Size for each variant:
DefId
: 11 bytesAuto
: 19 bytesBlanket
: 19 bytesPrimitive
: 7 bytes