[][src]Struct serde_test::Readable

pub struct Readable<T: ?Sized>(_);

Trait Implementations

impl<T: Eq + ?Sized> Eq for Readable<T>[src]

impl<T: Ord + ?Sized> Ord for Readable<T>[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<T: PartialEq + ?Sized> PartialEq<Readable<T>> for Readable<T>[src]

impl<T: PartialOrd + ?Sized> PartialOrd<Readable<T>> for Readable<T>[src]

impl<T: Debug + ?Sized> Debug for Readable<T>[src]

impl<'de, D> Visitor<'de> for Readable<D> where
    D: Visitor<'de>, 
[src]

type Value = D::Value

The value produced by this visitor.

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E> where
    E: Error
[src]

The input contains a i128. Read more

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E> where
    E: Error
[src]

The input contains a u128. Read more

impl<'de, D> MapAccess<'de> for Readable<D> where
    D: MapAccess<'de>, 
[src]

type Error = D::Error

The error type that can be returned if some error occurs during deserialization. Read more

fn next_entry_seed<K, V>(
    &mut self,
    kseed: K,
    vseed: V
) -> Result<Option<(<K as DeserializeSeed<'de>>::Value, <V as DeserializeSeed<'de>>::Value)>, Self::Error> where
    K: DeserializeSeed<'de>,
    V: DeserializeSeed<'de>, 
[src]

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

fn next_key<K>(&mut self) -> Result<Option<K>, Self::Error> where
    K: Deserialize<'de>, 
[src]

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

fn next_value<V>(&mut self) -> Result<V, Self::Error> where
    V: Deserialize<'de>, 
[src]

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

fn next_entry<K, V>(&mut self) -> Result<Option<(K, V)>, Self::Error> where
    K: Deserialize<'de>,
    V: Deserialize<'de>, 
[src]

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

impl<'de, D> Deserializer<'de> for Readable<D> where
    D: Deserializer<'de>, 
[src]

type Error = D::Error

The error type that can be returned if some error occurs during deserialization. Read more

fn deserialize_i128<V>(
    self,
    visitor: V
) -> Result<<V as Visitor<'de>>::Value, Self::Error> where
    V: Visitor<'de>, 
[src]

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

fn deserialize_u128<V>(
    self,
    visitor: V
) -> Result<<V as Visitor<'de>>::Value, Self::Error> where
    V: Visitor<'de>, 
[src]

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

impl<'de, T> DeserializeSeed<'de> for Readable<T> where
    T: DeserializeSeed<'de>, 
[src]

type Value = T::Value

The type produced by using this seed.

impl<'de, D> VariantAccess<'de> for Readable<D> where
    D: VariantAccess<'de>, 
[src]

type Error = D::Error

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

fn newtype_variant<T>(self) -> Result<T, Self::Error> where
    T: Deserialize<'de>, 
[src]

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

impl<'de, D> SeqAccess<'de> for Readable<D> where
    D: SeqAccess<'de>, 
[src]

type Error = D::Error

The error type that can be returned if some error occurs during deserialization. Read more

fn next_element<T>(&mut self) -> Result<Option<T>, Self::Error> where
    T: Deserialize<'de>, 
[src]

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

impl<S> Serializer for Readable<S> where
    S: Serializer
[src]

type Ok = S::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. Read more

type Error = S::Error

The error type when some error occurs during serialization.

type SerializeSeq = Readable<S::SerializeSeq>

Type returned from [serialize_seq] for serializing the content of the sequence. Read more

type SerializeTuple = Readable<S::SerializeTuple>

Type returned from [serialize_tuple] for serializing the content of the tuple. Read more

type SerializeTupleStruct = Readable<S::SerializeTupleStruct>

Type returned from [serialize_tuple_struct] for serializing the content of the tuple struct. Read more

type SerializeTupleVariant = Readable<S::SerializeTupleVariant>

Type returned from [serialize_tuple_variant] for serializing the content of the tuple variant. Read more

type SerializeMap = Readable<S::SerializeMap>

Type returned from [serialize_map] for serializing the content of the map. Read more

type SerializeStruct = Readable<S::SerializeStruct>

Type returned from [serialize_struct] for serializing the content of the struct. Read more

type SerializeStructVariant = Readable<S::SerializeStructVariant>

Type returned from [serialize_struct_variant] for serializing the content of the struct variant. Read more

fn serialize_i128(self, v: i128) -> Result<Self::Ok, Self::Error>[src]

Serialize an i128 value. Read more

fn serialize_u128(self, v: u128) -> Result<Self::Ok, Self::Error>[src]

Serialize a u128 value. Read more

fn collect_seq<I>(self, iter: I) -> Result<Self::Ok, Self::Error> where
    I: IntoIterator,
    <I as IntoIterator>::Item: Serialize
[src]

Collect an iterator as a sequence. Read more

fn collect_map<K, V, I>(self, iter: I) -> Result<Self::Ok, Self::Error> where
    I: IntoIterator<Item = (K, V)>,
    K: Serialize,
    V: Serialize
[src]

Collect an iterator as a map. Read more

fn collect_str<T>(self, value: &T) -> Result<Self::Ok, Self::Error> where
    T: Display + ?Sized
[src]

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

impl<T: ?Sized> Serialize for Readable<T> where
    T: Serialize
[src]

impl<S> SerializeTuple for Readable<S> where
    S: SerializeTuple
[src]

type Ok = S::Ok

Must match the Ok type of our Serializer.

type Error = S::Error

Must match the Error type of our Serializer.

impl<S> SerializeSeq for Readable<S> where
    S: SerializeSeq
[src]

type Ok = S::Ok

Must match the Ok type of our Serializer.

type Error = S::Error

Must match the Error type of our Serializer.

impl<S> SerializeStructVariant for Readable<S> where
    S: SerializeStructVariant
[src]

type Ok = S::Ok

Must match the Ok type of our Serializer.

type Error = S::Error

Must match the Error type of our Serializer.

fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>[src]

Indicate that a struct variant field has been skipped.

impl<S> SerializeTupleStruct for Readable<S> where
    S: SerializeTupleStruct
[src]

type Ok = S::Ok

Must match the Ok type of our Serializer.

type Error = S::Error

Must match the Error type of our Serializer.

impl<S> SerializeTupleVariant for Readable<S> where
    S: SerializeTupleVariant
[src]

type Ok = S::Ok

Must match the Ok type of our Serializer.

type Error = S::Error

Must match the Error type of our Serializer.

impl<S> SerializeMap for Readable<S> where
    S: SerializeMap
[src]

type Ok = S::Ok

Must match the Ok type of our Serializer.

type Error = S::Error

Must match the Error type of our Serializer.

impl<S> SerializeStruct for Readable<S> where
    S: SerializeStruct
[src]

type Ok = S::Ok

Must match the Ok type of our Serializer.

type Error = S::Error

Must match the Error type of our Serializer.

fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>[src]

Indicate that a struct field has been skipped.

impl<'de, T> Deserialize<'de> for Readable<T> where
    T: Deserialize<'de>, 
[src]

impl<'de, D> EnumAccess<'de> for Readable<D> where
    D: EnumAccess<'de>, 
[src]

type Error = D::Error

The error type that can be returned if some error occurs during deserialization. Read more

type Variant = Readable<D::Variant>

The Visitor that will be used to deserialize the content of the enum variant. Read more

fn variant<V>(self) -> Result<(V, Self::Variant), Self::Error> where
    V: Deserialize<'de>, 
[src]

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

Auto Trait Implementations

impl<T: ?Sized> Send for Readable<T> where
    T: Send

impl<T: ?Sized> Sync for Readable<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'de, T> Expected for T where
    T: Visitor<'de>, 
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]