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
ModuleUnstable (
rustdoc)ExternCrateUnstable (
rustdoc)ImportUnstable (
rustdoc)StructUnstable (
rustdoc)EnumUnstable (
rustdoc)FunctionUnstable (
rustdoc)TypedefUnstable (
rustdoc)StaticUnstable (
rustdoc)TraitUnstable (
rustdoc)ImplUnstable (
rustdoc)TyMethodUnstable (
rustdoc)MethodUnstable (
rustdoc)StructFieldUnstable (
rustdoc)VariantUnstable (
rustdoc)MacroUnstable (
rustdoc)PrimitiveUnstable (
rustdoc)AssociatedTypeUnstable (
rustdoc)ConstantUnstable (
rustdoc)AssociatedConstUnstable (
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) -> bool1.0.0
This method tests for !=.