Enum rustdoc_index::doc::ItemType[][src]

#[repr(u8)]
pub enum ItemType {
Show variants Module, ExternCrate, Import, Struct, Enum, Function, Typedef, Static, Trait, Impl, TyMethod, Method, StructField, Variant, Macro, Primitive, AssocType, Constant, AssocConst, Union, ForeignType, Keyword, OpaqueTy, ProcAttribute, ProcDerive, TraitAlias,
}

rust/src/librustdoc/formats/item_type.rs

Variants

Module
ExternCrate
Import
Struct
Enum
Function
Typedef
Static
Trait
Impl
TyMethod
Method
StructField
Variant
Macro
Primitive
AssocType
Constant
AssocConst
Union
ForeignType
Keyword
OpaqueTy
ProcAttribute
ProcDerive
TraitAlias

Implementations

impl ItemType[src]

pub fn as_str(&self) -> &'static str[src]

Trait Implementations

impl Clone for ItemType[src]

impl Copy for ItemType[src]

impl Debug for ItemType[src]

impl<'de> Deserialize<'de> for ItemType[src]

impl Eq for ItemType[src]

impl FromStr for ItemType[src]

type Err = ParseItemTypeError

The associated error which can be returned from parsing.

impl PartialEq<ItemType> for ItemType[src]

impl StructuralEq for ItemType[src]

impl StructuralPartialEq for ItemType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.