Enum rustdoc::clean::PrimitiveType [−] [src]

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

Variants

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

Methods

impl PrimitiveType

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

Unstable

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

Unstable

fn to_node_id(&self) -> NodeId

Unstable

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 Debug for PrimitiveType

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

impl Copy for PrimitiveType

impl Hash for PrimitiveType

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for PrimitiveType

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, __D>

impl Encodable for PrimitiveType

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

impl Clone for PrimitiveType

fn clone(&self) -> PrimitiveType

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