Enum rustdoc::clean::PrimitiveType [−][src]
pub enum PrimitiveType { Isize, I8, I16, I32, I64, I128, Usize, U8, U16, U32, U64, U128, F32, F64, Char, Bool, Str, Slice, Array, Tuple, Unit, RawPointer, Reference, Fn, Never, }
Variants
Isize
I8
I16
I32
I64
I128
Usize
U8
U16
U32
U64
U128
F32
F64
Char
Bool
Str
Slice
Array
Tuple
Unit
RawPointer
Reference
Fn
Never
Methods
impl PrimitiveType
[src]
impl PrimitiveType
fn from_str(s: &str) -> Option<PrimitiveType>
[src]
fn from_str(s: &str) -> Option<PrimitiveType>
pub fn as_str(&self) -> &'static str
[src]
pub fn as_str(&self) -> &'static str
pub fn to_url_str(&self) -> &'static str
[src]
pub fn to_url_str(&self) -> &'static str
Trait Implementations
impl Clone for PrimitiveType
[src]
impl Clone for PrimitiveType
fn clone(&self) -> PrimitiveType
[src]
fn clone(&self) -> PrimitiveType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Encodable for PrimitiveType
[src]
impl Encodable for PrimitiveType
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Decodable for PrimitiveType
[src]
impl Decodable for PrimitiveType
fn decode<__D: Decoder>(d: &mut __D) -> Result<PrimitiveType, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<PrimitiveType, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl PartialEq for PrimitiveType
[src]
impl PartialEq for PrimitiveType
fn eq(&self, other: &PrimitiveType) -> bool
[src]
fn eq(&self, other: &PrimitiveType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for PrimitiveType
[src]
impl Eq for PrimitiveType
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl Hash for PrimitiveType
[src]
impl Hash for PrimitiveType
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Copy for PrimitiveType
[src]
impl Copy for PrimitiveType
impl Debug for PrimitiveType
[src]
impl Debug for PrimitiveType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<IntTy> for PrimitiveType
[src]
impl From<IntTy> for PrimitiveType
fn from(int_ty: IntTy) -> PrimitiveType
[src]
fn from(int_ty: IntTy) -> PrimitiveType
Performs the conversion.
impl From<UintTy> for PrimitiveType
[src]
impl From<UintTy> for PrimitiveType
fn from(uint_ty: UintTy) -> PrimitiveType
[src]
fn from(uint_ty: UintTy) -> PrimitiveType
Performs the conversion.
impl From<FloatTy> for PrimitiveType
[src]
impl From<FloatTy> for PrimitiveType
fn from(float_ty: FloatTy) -> PrimitiveType
[src]
fn from(float_ty: FloatTy) -> PrimitiveType
Performs the conversion.
Auto Trait Implementations
impl Send for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Sync for PrimitiveType