Enum rustdoc::clean::Primitive[src]

pub enum Primitive {
    Int,
    I8,
    I16,
    I32,
    I64,
    Uint,
    U8,
    U16,
    U32,
    U64,
    F32,
    F64,
    Char,
    Bool,
    Nil,
    Str,
    Slice,
    PrimitiveTuple,
}

Variants

Int
I8
I16
I32
I64
Uint
U8
U16
U32
U64
F32
F64
Char
Bool
Nil
Str
Slice
PrimitiveTuple

Methods

impl Primitive

fn to_str(&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 Hash for Primitive

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

impl Eq for Primitive

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Primitive

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

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

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for Primitive

fn decode(__arg_0: &mut __D) -> Result<Primitive, __E>

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for Primitive

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

impl Clone for Primitive

fn clone(&self) -> Primitive

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