Enum rustdoc::clean::PrimitiveTypeUnstable [-]  [+] [src]

pub enum PrimitiveType {
    Isize,
    I8,
    I16,
    I32,
    I64,
    Usize,
    U8,
    U16,
    U32,
    U64,
    F32,
    F64,
    Char,
    Bool,
    Str,
    Slice,
    PrimitiveTuple,
}

Variants

Isize
I8
I16
I32
I64
Usize
U8
U16
U32
U64
F32
F64
Char
Bool
Str
Slice
PrimitiveTuple

Methods

impl PrimitiveType

fn to_string(&self) -> &'static str

fn to_url_str(&self) -> &'static str

fn to_node_id(&self) -> NodeId

Creates a rustdoc-specific node id for primitive types.

These node ids are generally never used by the AST itself.

Trait Implementations

Derived Implementations

impl Show for PrimitiveType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for PrimitiveType

impl<__S: Writer + Hasher> Hash<__S> for PrimitiveType

fn hash(&self, __arg_0: &mut __S)

impl Eq for PrimitiveType

fn assert_receiver_is_total_eq(&self)

impl PartialEq for PrimitiveType

fn eq(&self, __arg_0: &PrimitiveType) -> bool

fn ne(&self, __arg_0: &PrimitiveType) -> bool

impl Decodable for PrimitiveType

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<PrimitiveType, Error>

impl Encodable for PrimitiveType

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Clone for PrimitiveType

fn clone(&self) -> PrimitiveType

fn clone_from(&mut self, source: &Self)