[−][src]Enum serde::de::Type
Type represents all the primitive types that can be deserialized. This is used by
Error::invalid_type.
Variants
BoolRepresents a bool type.
UsizeRepresents a usize type.
U8Represents a u8 type.
U16Represents a u16 type.
U32Represents a u32 type.
U64Represents a u64 type.
IsizeRepresents a isize type.
I8Represents a i8 type.
I16Represents a i16 type.
I32Represents a i32 type.
I64Represents a i64 type.
F32Represents a f32 type.
F64Represents a f64 type.
CharRepresents a char type.
StrRepresents a &str type.
StringRepresents a String type.
UnitRepresents a () type.
OptionRepresents an Option<T> type.
SeqRepresents a sequence type.
MapRepresents a map type.
UnitStructRepresents a unit struct type.
NewtypeStructRepresents a newtype type.
TupleStructRepresents a tuple struct type.
StructRepresents a struct type.
FieldNameRepresents a struct field name.
TupleRepresents a tuple type.
EnumRepresents an enum type.
VariantNameRepresents an enum variant name.
StructVariantRepresents a struct variant.
TupleVariantRepresents a tuple variant.
UnitVariantRepresents a unit variant.
BytesRepresents a &[u8] type.
Trait Implementations
impl Clone for Type[src]
impl Clone for Typefn clone(&self) -> Type[src]
fn clone(&self) -> TypeReturns 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 Copy for Type[src]
impl Copy for Typeimpl Eq for Type[src]
impl Eq for Typeimpl PartialEq<Type> for Type[src]
impl PartialEq<Type> for Typefn eq(&self, other: &Type) -> bool[src]
fn eq(&self, other: &Type) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Display for Type[src]
impl Display for Typefn 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 TypeAuto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, 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) -> TCreates 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) -> &TImmutably borrows from an owned value. 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 TMutably 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>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
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