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 (
rustdoc
)Variants
Isize
Unstable (
rustdoc
)I8
Unstable (
rustdoc
)I16
Unstable (
rustdoc
)I32
Unstable (
rustdoc
)I64
Unstable (
rustdoc
)Usize
Unstable (
rustdoc
)U8
Unstable (
rustdoc
)U16
Unstable (
rustdoc
)U32
Unstable (
rustdoc
)U64
Unstable (
rustdoc
)F32
Unstable (
rustdoc
)F64
Unstable (
rustdoc
)Char
Unstable (
rustdoc
)Bool
Unstable (
rustdoc
)Str
Unstable (
rustdoc
)Slice
Unstable (
rustdoc
)Array
Unstable (
rustdoc
)PrimitiveTuple
Unstable (
rustdoc
)PrimitiveRawPointer
Unstable (
rustdoc
)Methods
impl PrimitiveType
[src]
fn to_string(&self) -> &'static str
fn to_url_str(&self) -> &'static str
fn to_def_index(&self) -> DefIndex
Unstable (
rustdoc
)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
[src]
impl Copy for PrimitiveType
[src]
impl Hash for PrimitiveType
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Eq for PrimitiveType
[src]
impl PartialEq for PrimitiveType
[src]
fn eq(&self, __arg_0: &PrimitiveType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Decodable for PrimitiveType
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<PrimitiveType, __D::Error>
impl Encodable for PrimitiveType
[src]
impl Clone for PrimitiveType
[src]
fn clone(&self) -> PrimitiveType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more