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, Union, ForeignType, Keyword, }
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
ExternCrate
Import
Struct
Enum
Function
Typedef
Static
Trait
Impl
TyMethod
Method
StructField
Variant
Macro
Primitive
AssociatedType
Constant
AssociatedConst
Union
ForeignType
Keyword
Methods
impl ItemType
[src]
impl ItemType
Trait Implementations
impl Copy for ItemType
[src]
impl Copy for ItemType
impl PartialEq for ItemType
[src]
impl PartialEq for ItemType
fn eq(&self, other: &ItemType) -> bool
[src]
fn eq(&self, other: &ItemType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Clone for ItemType
[src]
impl Clone for ItemType
fn clone(&self) -> ItemType
[src]
fn clone(&self) -> ItemType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ItemType
[src]
impl Debug for ItemType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> From<&'a Item> for ItemType
[src]
impl<'a> From<&'a Item> for ItemType
impl From<TypeKind> for ItemType
[src]
impl From<TypeKind> for ItemType
impl Display for ItemType
[src]
impl Display for ItemType