[−][src]Enum serde::de::Type
Type
represents all the primitive types that can be deserialized. This is used by
Error::invalid_type
.
Variants
Bool
Represents a bool
type.
Usize
Represents a usize
type.
U8
Represents a u8
type.
U16
Represents a u16
type.
U32
Represents a u32
type.
U64
Represents a u64
type.
Isize
Represents a isize
type.
I8
Represents a i8
type.
I16
Represents a i16
type.
I32
Represents a i32
type.
I64
Represents a i64
type.
F32
Represents a f32
type.
F64
Represents a f64
type.
Char
Represents a char
type.
Str
Represents a &str
type.
String
Represents a String
type.
Unit
Represents a ()
type.
Option
Represents an Option<T>
type.
Seq
Represents a sequence type.
Map
Represents a map type.
UnitStruct
Represents a unit struct type.
NewtypeStruct
Represents a newtype type.
TupleStruct
Represents a tuple struct type.
Struct
Represents a struct type.
FieldName
Represents a struct field name.
Tuple
Represents a tuple type.
Enum
Represents an enum
type.
VariantName
Represents an enum variant name.
StructVariant
Represents a struct variant.
TupleVariant
Represents a tuple variant.
UnitVariant
Represents a unit variant.
Bytes
Represents a &[u8]
type.
Trait Implementations
impl Copy for Type
[src]
impl Copy for Type
impl Clone for Type
[src]
impl Clone for Type
fn clone(&self) -> Type
[src]
fn clone(&self) -> Type
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)
Performs copy-assignment from source
. Read more
impl Eq for Type
[src]
impl Eq for Type
impl PartialEq<Type> for Type
[src]
impl PartialEq<Type> for Type
fn eq(&self, other: &Type) -> bool
[src]
fn eq(&self, other: &Type) -> 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
This method tests for !=
.
impl Display for Type
[src]
impl Display for Type
fn fmt(&self, formatter: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Debug for Type
[src]
impl Debug for Type
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow(&self) -> &T
[src]
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,