Nothing

Struct Nothing 

Source
pub struct Nothing;
Expand description

Serializer to serialize values into and from nothing.

Trait Implementations§

Source§

impl Clone for Nothing

Source§

fn clone(&self) -> Nothing

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Nothing

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Nothing

Source§

fn default() -> Nothing

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserializer<'de> for Nothing

Source§

type Error = NothingDeserializeError

The error type that can be returned if some error occurs during deserialization.
Source§

fn deserialize_any<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
Source§

fn deserialize_bool<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a bool value.
Source§

fn deserialize_i8<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i8 value.
Source§

fn deserialize_i16<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i16 value.
Source§

fn deserialize_i32<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i32 value.
Source§

fn deserialize_i64<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i64 value.
Source§

fn deserialize_u8<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u8 value.
Source§

fn deserialize_u16<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u16 value.
Source§

fn deserialize_u32<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u32 value.
Source§

fn deserialize_u64<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u64 value.
Source§

fn deserialize_i128<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
Source§

fn deserialize_u128<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
Source§

fn deserialize_f32<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f32 value.
Source§

fn deserialize_f64<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f64 value.
Source§

fn deserialize_char<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a char value.
Source§

fn deserialize_str<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_string<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_bytes<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_byte_buf<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_option<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an optional value. Read more
Source§

fn deserialize_unit<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit value.
Source§

fn deserialize_unit_struct<V>( self, _: &'static str, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit struct with a particular name.
Source§

fn deserialize_newtype_struct<V>( self, _: &'static str, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a newtype struct with a particular name.
Source§

fn deserialize_seq<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values.
Source§

fn deserialize_tuple<V>( self, len: usize, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data.
Source§

fn deserialize_tuple_struct<V>( self, _: &'static str, len: usize, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields.
Source§

fn deserialize_map<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a map of key-value pairs.
Source§

fn deserialize_struct<V>( self, _: &'static str, fields: &'static [&'static str], visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a struct with a particular name and fields.
Source§

fn deserialize_enum<V>( self, _: &'static str, _: &'static [&'static str], visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an enum value with a particular name and possible variants.
Source§

fn deserialize_identifier<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant.
Source§

fn deserialize_ignored_any<V>( self, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
Source§

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
Source§

impl<'de> EnumAccess<'de> for Nothing

Source§

type Error = NothingDeserializeError

The error type that can be returned if some error occurs during deserialization.
Source§

type Variant = Nothing

The Visitor that will be used to deserialize the content of the enum variant.
Source§

fn variant_seed<V>( self, seed: V, ) -> Result<(V::Value, Self::Variant), NothingDeserializeError>
where V: DeserializeSeed<'de>,

variant is called to identify which variant to deserialize. Read more
Source§

fn variant<V>(self) -> Result<(V, Self::Variant), NothingDeserializeError>
where V: Deserialize<'de>,

variant is called to identify which variant to deserialize. Read more
Source§

impl Hash for Nothing

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'de> MapAccess<'de> for Nothing

Source§

type Error = NothingDeserializeError

The error type that can be returned if some error occurs during deserialization.
Source§

fn next_key_seed<K>( &mut self, _: K, ) -> Result<Option<K::Value>, NothingDeserializeError>
where K: DeserializeSeed<'de>,

This returns Ok(Some(key)) for the next key in the map, or Ok(None) if there are no more remaining entries. Read more
Source§

fn next_value_seed<V>( &mut self, _: V, ) -> Result<V::Value, NothingDeserializeError>
where V: DeserializeSeed<'de>,

This returns a Ok(value) for the next value in the map. Read more
Source§

fn next_entry_seed<K, V>( &mut self, _: K, _: V, ) -> Result<Option<(K::Value, V::Value)>, NothingDeserializeError>
where K: DeserializeSeed<'de>, V: DeserializeSeed<'de>,

This returns Ok(Some((key, value))) for the next (key-value) pair in the map, or Ok(None) if there are no more remaining items. Read more
Source§

fn next_key<K>(&mut self) -> Result<Option<K>, NothingDeserializeError>
where K: Deserialize<'de>,

This returns Ok(Some(key)) for the next key in the map, or Ok(None) if there are no more remaining entries. Read more
Source§

fn next_value<V>(&mut self) -> Result<V, NothingDeserializeError>
where V: Deserialize<'de>,

This returns a Ok(value) for the next value in the map. Read more
Source§

fn next_entry<K, V>( &mut self, ) -> Result<Option<(K, V)>, NothingDeserializeError>
where K: Deserialize<'de>, V: Deserialize<'de>,

This returns Ok(Some((key, value))) for the next (key-value) pair in the map, or Ok(None) if there are no more remaining items. Read more
Source§

fn size_hint(&self) -> Option<usize>

Returns the number of entries remaining in the map, if known.
Source§

impl Ord for Nothing

Source§

fn cmp(&self, other: &Nothing) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Nothing

Source§

fn eq(&self, other: &Nothing) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Nothing

Source§

fn partial_cmp(&self, other: &Nothing) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<'de> SeqAccess<'de> for Nothing

Source§

type Error = NothingDeserializeError

The error type that can be returned if some error occurs during deserialization.
Source§

fn next_element_seed<T>( &mut self, _: T, ) -> Result<Option<T::Value>, NothingDeserializeError>
where T: DeserializeSeed<'de>,

This returns Ok(Some(value)) for the next value in the sequence, or Ok(None) if there are no more remaining items. Read more
Source§

fn next_element<T>(&mut self) -> Result<Option<T>, NothingDeserializeError>
where T: Deserialize<'de>,

This returns Ok(Some(value)) for the next value in the sequence, or Ok(None) if there are no more remaining items. Read more
Source§

fn size_hint(&self) -> Option<usize>

Returns the number of elements remaining in the sequence, if known.
Source§

impl SerializeMap for Nothing

Source§

type Ok = ()

Must match the Ok type of our Serializer.
Source§

type Error = NothingSerializeError

Must match the Error type of our Serializer.
Source§

fn serialize_key<T: ?Sized>( &mut self, _: &T, ) -> Result<(), NothingSerializeError>

Serialize a map key. Read more
Source§

fn serialize_value<T: ?Sized>( &mut self, _: &T, ) -> Result<(), NothingSerializeError>

Serialize a map value. Read more
Source§

fn end(self) -> Result<(), NothingSerializeError>

Finish serializing a map.
Source§

fn serialize_entry<K, V>( &mut self, key: &K, value: &V, ) -> Result<(), Self::Error>
where K: Serialize + ?Sized, V: Serialize + ?Sized,

Serialize a map entry consisting of a key and a value. Read more
Source§

impl SerializeSeq for Nothing

Source§

type Ok = ()

Must match the Ok type of our Serializer.
Source§

type Error = NothingSerializeError

Must match the Error type of our Serializer.
Source§

fn serialize_element<T: ?Sized>( &mut self, _: &T, ) -> Result<(), NothingSerializeError>

Serialize a sequence element.
Source§

fn end(self) -> Result<(), NothingSerializeError>

Finish serializing a sequence.
Source§

impl SerializeStruct for Nothing

Source§

type Ok = ()

Must match the Ok type of our Serializer.
Source§

type Error = NothingSerializeError

Must match the Error type of our Serializer.
Source§

fn serialize_field<T>( &mut self, _: &'static str, value: &T, ) -> Result<(), NothingSerializeError>
where T: Serialize + ?Sized,

Serialize a struct field.
Source§

fn skip_field(&mut self, _: &'static str) -> Result<(), NothingSerializeError>

Indicate that a struct field has been skipped. Read more
Source§

fn end(self) -> Result<(), NothingSerializeError>

Finish serializing a struct.
Source§

impl SerializeStructVariant for Nothing

Source§

type Ok = ()

Must match the Ok type of our Serializer.
Source§

type Error = NothingSerializeError

Must match the Error type of our Serializer.
Source§

fn serialize_field<T>( &mut self, _: &'static str, value: &T, ) -> Result<(), NothingSerializeError>
where T: Serialize + ?Sized,

Serialize a struct variant field.
Source§

fn skip_field(&mut self, _: &'static str) -> Result<(), NothingSerializeError>

Indicate that a struct variant field has been skipped. Read more
Source§

fn end(self) -> Result<(), NothingSerializeError>

Finish serializing a struct variant.
Source§

impl SerializeTuple for Nothing

Source§

type Ok = ()

Must match the Ok type of our Serializer.
Source§

type Error = NothingSerializeError

Must match the Error type of our Serializer.
Source§

fn serialize_element<T>( &mut self, value: &T, ) -> Result<(), NothingSerializeError>
where T: Serialize + ?Sized,

Serialize a tuple element.
Source§

fn end(self) -> Result<(), NothingSerializeError>

Finish serializing a tuple.
Source§

impl SerializeTupleStruct for Nothing

Source§

type Ok = ()

Must match the Ok type of our Serializer.
Source§

type Error = NothingSerializeError

Must match the Error type of our Serializer.
Source§

fn serialize_field<T>(&mut self, value: &T) -> Result<(), NothingSerializeError>
where T: Serialize + ?Sized,

Serialize a tuple struct field.
Source§

fn end(self) -> Result<(), NothingSerializeError>

Finish serializing a tuple struct.
Source§

impl SerializeTupleVariant for Nothing

Source§

type Ok = ()

Must match the Ok type of our Serializer.
Source§

type Error = NothingSerializeError

Must match the Error type of our Serializer.
Source§

fn serialize_field<T>(&mut self, value: &T) -> Result<(), NothingSerializeError>
where T: Serialize + ?Sized,

Serialize a tuple variant field.
Source§

fn end(self) -> Result<(), NothingSerializeError>

Finish serializing a tuple variant.
Source§

impl Serializer for Nothing

Source§

type Ok = ()

The output type produced by this Serializer during successful serialization. Most serializers that produce text or binary output should set Ok = () and serialize into an io::Write or buffer contained within the Serializer instance. Serializers that build in-memory data structures may be simplified by using Ok to propagate the data structure around.
Source§

type Error = NothingSerializeError

The error type when some error occurs during serialization.
Source§

type SerializeSeq = Nothing

Type returned from serialize_seq for serializing the content of the sequence.
Source§

type SerializeTuple = Nothing

Type returned from serialize_tuple for serializing the content of the tuple.
Source§

type SerializeTupleStruct = Nothing

Type returned from serialize_tuple_struct for serializing the content of the tuple struct.
Source§

type SerializeTupleVariant = Nothing

Type returned from serialize_tuple_variant for serializing the content of the tuple variant.
Source§

type SerializeMap = Nothing

Type returned from serialize_map for serializing the content of the map.
Source§

type SerializeStruct = Nothing

Type returned from serialize_struct for serializing the content of the struct.
Source§

type SerializeStructVariant = Nothing

Type returned from serialize_struct_variant for serializing the content of the struct variant.
Source§

fn serialize_bool(self, v: bool) -> Result<(), NothingSerializeError>

Serialize a bool value. Read more
Source§

fn serialize_i8(self, v: i8) -> Result<(), NothingSerializeError>

Serialize an i8 value. Read more
Source§

fn serialize_i16(self, v: i16) -> Result<(), NothingSerializeError>

Serialize an i16 value. Read more
Source§

fn serialize_i32(self, v: i32) -> Result<(), NothingSerializeError>

Serialize an i32 value. Read more
Source§

fn serialize_i64(self, v: i64) -> Result<(), NothingSerializeError>

Serialize an i64 value. Read more
Source§

fn serialize_u8(self, v: u8) -> Result<(), NothingSerializeError>

Serialize a u8 value. Read more
Source§

fn serialize_u16(self, v: u16) -> Result<(), NothingSerializeError>

Serialize a u16 value. Read more
Source§

fn serialize_u32(self, v: u32) -> Result<(), NothingSerializeError>

Serialize a u32 value. Read more
Source§

fn serialize_u64(self, v: u64) -> Result<(), NothingSerializeError>

Serialize a u64 value. Read more
Source§

fn serialize_i128(self, v: i128) -> Result<(), NothingSerializeError>

Serialize an i128 value. Read more
Source§

fn serialize_u128(self, v: u128) -> Result<(), NothingSerializeError>

Serialize a u128 value. Read more
Source§

fn serialize_f32(self, v: f32) -> Result<(), NothingSerializeError>

Serialize an f32 value. Read more
Source§

fn serialize_f64(self, v: f64) -> Result<(), NothingSerializeError>

Serialize an f64 value. Read more
Source§

fn serialize_char(self, v: char) -> Result<(), NothingSerializeError>

Serialize a character. Read more
Source§

fn serialize_str(self, v: &str) -> Result<(), NothingSerializeError>

Serialize a &str. Read more
Source§

fn serialize_bytes(self, v: &[u8]) -> Result<(), NothingSerializeError>

Serialize a chunk of raw byte data. Read more
Source§

fn serialize_none(self) -> Result<(), NothingSerializeError>

Serialize a None value. Read more
Source§

fn serialize_some<T: ?Sized>(self, _: &T) -> Result<(), NothingSerializeError>

Serialize a Some(T) value. Read more
Source§

fn serialize_unit(self) -> Result<(), NothingSerializeError>

Serialize a () value. Read more
Source§

fn serialize_unit_struct( self, _: &'static str, ) -> Result<(), NothingSerializeError>

Serialize a unit struct like struct Unit or PhantomData<T>. Read more
Source§

fn serialize_unit_variant( self, _: &'static str, _: u32, _: &'static str, ) -> Result<(), NothingSerializeError>

Serialize a unit variant like E::A in enum E { A, B }. Read more
Source§

fn serialize_newtype_struct<T>( self, _: &'static str, value: &T, ) -> Result<(), NothingSerializeError>
where T: Serialize + ?Sized,

Serialize a newtype struct like struct Millimeters(u8). Read more
Source§

fn serialize_newtype_variant<T>( self, _: &'static str, _: u32, _: &'static str, value: &T, ) -> Result<(), NothingSerializeError>
where T: Serialize + ?Sized,

Serialize a newtype variant like E::N in enum E { N(u8) }. Read more
Source§

fn serialize_seq(self, _: Option<usize>) -> Result<Self, NothingSerializeError>

Begin to serialize a variably sized sequence. This call must be followed by zero or more calls to serialize_element, then a call to end. Read more
Source§

fn serialize_tuple(self, _: usize) -> Result<Self, NothingSerializeError>

Begin to serialize a statically sized sequence whose length will be known at deserialization time without looking at the serialized data. This call must be followed by zero or more calls to serialize_element, then a call to end. Read more
Source§

fn serialize_tuple_struct( self, _: &'static str, _: usize, ) -> Result<Self, NothingSerializeError>

Begin to serialize a tuple struct like struct Rgb(u8, u8, u8). This call must be followed by zero or more calls to serialize_field, then a call to end. Read more
Source§

fn serialize_tuple_variant( self, _: &'static str, _: u32, _: &'static str, _: usize, ) -> Result<Self, NothingSerializeError>

Begin to serialize a tuple variant like E::T in enum E { T(u8, u8) }. This call must be followed by zero or more calls to serialize_field, then a call to end. Read more
Source§

fn serialize_map(self, _: Option<usize>) -> Result<Self, NothingSerializeError>

Begin to serialize a map. This call must be followed by zero or more calls to serialize_key and serialize_value, then a call to end. Read more
Source§

fn serialize_struct( self, _: &'static str, _: usize, ) -> Result<Self, NothingSerializeError>

Begin to serialize a struct like struct Rgb { r: u8, g: u8, b: u8 }. This call must be followed by zero or more calls to serialize_field, then a call to end. Read more
Source§

fn serialize_struct_variant( self, _: &'static str, _: u32, _: &'static str, _: usize, ) -> Result<Self, NothingSerializeError>

Begin to serialize a struct variant like E::S in enum E { S { r: u8, g: u8, b: u8 } }. This call must be followed by zero or more calls to serialize_field, then a call to end. Read more
Source§

fn collect_seq<I>(self, iter: I) -> Result<(), NothingSerializeError>
where I: IntoIterator,

Collect an iterator as a sequence. Read more
Source§

fn collect_map<K, V, I>(self, iter: I) -> Result<(), NothingSerializeError>
where I: IntoIterator<Item = (K, V)>,

Collect an iterator as a map. Read more
Source§

fn collect_str<T>(self, value: &T) -> Result<(), NothingSerializeError>
where T: Display + ?Sized,

Serialize a string produced by an implementation of Display. Read more
Source§

fn is_human_readable(&self) -> bool

Determine whether Serialize implementations should serialize in human-readable form. Read more
Source§

impl<'de> VariantAccess<'de> for Nothing

Source§

type Error = NothingDeserializeError

The error type that can be returned if some error occurs during deserialization. Must match the error type of our EnumAccess.
Source§

fn unit_variant(self) -> Result<(), NothingDeserializeError>

Called when deserializing a variant with no values. Read more
Source§

fn newtype_variant_seed<T>( self, seed: T, ) -> Result<T::Value, NothingDeserializeError>
where T: DeserializeSeed<'de>,

Called when deserializing a variant with a single value. Read more
Source§

fn newtype_variant<T>(self) -> Result<T, NothingDeserializeError>
where T: Deserialize<'de>,

Called when deserializing a variant with a single value. Read more
Source§

fn tuple_variant<V>( self, len: usize, visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Called when deserializing a tuple-like variant. Read more
Source§

fn struct_variant<V>( self, fields: &'static [&'static str], visitor: V, ) -> Result<V::Value, NothingDeserializeError>
where V: Visitor<'de>,

Called when deserializing a struct-like variant. Read more
Source§

impl Copy for Nothing

Source§

impl Eq for Nothing

Source§

impl StructuralPartialEq for Nothing

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.