Enum rustdoc::html::item_type::ItemType
[−]
[src]
pub enum ItemType { Module, ExternCrate, Import, Struct, Enum, Function, Typedef, Static, Trait, Impl, TyMethod, Method, StructField, Variant, Macro, Primitive, AssociatedType, Constant, AssociatedConst, }
Unstable (
rustdoc
)Item type. Corresponds to clean::ItemEnum
variants.
The search index uses item types encoded as smaller numbers which equal to
discriminants. JavaScript then is used to decode them into the original value.
Consequently, every change to this type should be synchronized to
the itemTypes
mapping table in static/main.js
.
Variants
Module
Unstable (
rustdoc
)ExternCrate
Unstable (
rustdoc
)Import
Unstable (
rustdoc
)Struct
Unstable (
rustdoc
)Enum
Unstable (
rustdoc
)Function
Unstable (
rustdoc
)Typedef
Unstable (
rustdoc
)Static
Unstable (
rustdoc
)Trait
Unstable (
rustdoc
)Impl
Unstable (
rustdoc
)TyMethod
Unstable (
rustdoc
)Method
Unstable (
rustdoc
)StructField
Unstable (
rustdoc
)Variant
Unstable (
rustdoc
)Macro
Unstable (
rustdoc
)Primitive
Unstable (
rustdoc
)AssociatedType
Unstable (
rustdoc
)Constant
Unstable (
rustdoc
)AssociatedConst
Unstable (
rustdoc
)Methods
impl ItemType
[src]
fn from_item(item: &Item) -> ItemType
fn from_type_kind(kind: TypeKind) -> ItemType
fn to_static_str(&self) -> &'static str
Trait Implementations
impl Display for ItemType
[src]
Derived Implementations
impl Clone for ItemType
[src]
fn clone(&self) -> ItemType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for ItemType
[src]
fn eq(&self, __arg_0: &ItemType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.