pub enum Intermediate {
Show 29 variants Unit, Bool(bool), I8(i8), I16(i16), I32(i32), I64(i64), I128(i128), U8(u8), U16(u16), U32(u32), U64(u64), U128(u128), F32(f32), F64(f64), Char(char), String(String), Bytes(Vec<u8>), Option(Option<Box<Self>>), UnitStruct, UnitVariant(String), NewTypeStruct(Box<Self>), NewTypeVariant(String, Box<Self>), Seq(Vec<Self>), Tuple(Vec<Self>), TupleStruct(Vec<Self>), TupleVariant(String, Vec<Self>), Map(Vec<(Self, Self)>), Struct(Vec<(String, Self)>), StructVariant(String, Vec<(String, Self)>),
}
Expand description

Serde intermediate data representation.

Example

use std::time::SystemTime;
use serde::{Serialize, Deserialize};

#[derive(Debug, PartialEq, Serialize, Deserialize)]
enum Login {
    Email(String),
    SocialMedia{
        service: String,
        token: String,
        last_login: Option<SystemTime>,
    }
}

#[derive(Debug, PartialEq, Serialize, Deserialize)]
struct Person {
    // (first name, last name)
    name: (String, String),
    age: usize,
    login: Login,
}

let data = Person {
    name: ("John".to_owned(), "Smith".to_owned()),
    age: 40,
    login: Login::Email("john.smith@gmail.com".to_owned()),
};
let serialized = serde_intermediate::to_intermediate(&data).unwrap();
let deserialized = serde_intermediate::from_intermediate(&serialized).unwrap();
assert_eq!(data, deserialized);

Variants§

§

Unit

Unit value: ().

§

Bool(bool)

Bool value: true.

§

I8(i8)

8-bit signed integer value: 42.

§

I16(i16)

16-bit signed integer value: 42.

§

I32(i32)

32-bit signed integer value: 42.

§

I64(i64)

64-bit signed integer value: 42.

§

I128(i128)

128-bit signed integer value: 42.

§

U8(u8)

8-bit unsigned integer value: 42.

§

U16(u16)

16-bit unsigned integer value: 42.

§

U32(u32)

32-bit unsigned integer value: 42.

§

U64(u64)

64-bit unsigned integer value: 42.

§

U128(u128)

128-bit unsigned integer value: 42.

§

F32(f32)

32-bit floating point value: 3.14.

§

F64(f64)

64-bit floating point value: 3.14.

§

Char(char)

Single character value: '@'.

§

String(String)

String value: "Hello World!".

§

Bytes(Vec<u8>)

Bytes buffer.

§

Option(Option<Box<Self>>)

Tuple Fields

§0: Option<Box<Self>>

Value.

Option value: Some(42).

§

UnitStruct

Structure: struct Foo;.

§

UnitVariant(String)

Tuple Fields

§0: String

Variant name.

Enum unit variant: enum Foo { Bar }.

§

NewTypeStruct(Box<Self>)

Newtype struct: struct Foo(bool);.

§

NewTypeVariant(String, Box<Self>)

Tuple Fields

§0: String

Variant name.

§1: Box<Self>

Value.

Enum newtype variant: enum Foo { Bar(bool) }.

§

Seq(Vec<Self>)

Tuple Fields

§0: Vec<Self>

Items.

Sequence/list: Vec<usize>, [usize].

§

Tuple(Vec<Self>)

Tuple Fields

§0: Vec<Self>

Fields.

Tuple: (bool, char).

§

TupleStruct(Vec<Self>)

Tuple Fields

§0: Vec<Self>

Fields.

Tuple struct: struct Foo(bool, char).

§

TupleVariant(String, Vec<Self>)

Tuple Fields

§0: String

Variant name.

§1: Vec<Self>

Fields.

Tuple variant: enum Foo { Bar(bool, char) }.

§

Map(Vec<(Self, Self)>)

Tuple Fields

§0: Vec<(Self, Self)>

Entries: (key, value).

Map: HashMap<String, usize>.

§

Struct(Vec<(String, Self)>)

Tuple Fields

§0: Vec<(String, Self)>

Fields: (name, value).

Struct: struct Foo { a: bool, b: char }.

§

StructVariant(String, Vec<(String, Self)>)

Tuple Fields

§0: String

Variant name.

§1: Vec<(String, Self)>

Fields: (name, value).

Enum struct variant: enum Foo { Bar { a: bool, b: char } }.

Implementations§

source§

impl Intermediate

source

pub fn unit_struct() -> Self

source

pub fn unit_variant<T>(name: T) -> Selfwhere T: ToString,

source

pub fn newtype_struct(value: Self) -> Self

source

pub fn newtype_variant<T>(name: T, value: Self) -> Selfwhere T: ToString,

source

pub fn seq() -> Self

source

pub fn tuple() -> Self

source

pub fn tuple_struct() -> Self

source

pub fn tuple_variant<T>(name: T) -> Selfwhere T: ToString,

source

pub fn map() -> Self

source

pub fn struct_type() -> Self

source

pub fn struct_variant<T>(name: T) -> Selfwhere T: ToString,

source

pub fn item<T>(self, value: T) -> Selfwhere T: Into<Self>,

source

pub fn property<K, T>(self, key: K, value: T) -> Selfwhere K: Into<Self>, T: Into<Self>,

source

pub fn field<K, T>(self, key: K, value: T) -> Selfwhere K: ToString, T: Into<Self>,

source

pub fn total_bytesize(&self) -> usize

source§

impl Intermediate

source

pub fn as_unit(&self) -> Option<()>

source

pub fn as_bool(&self) -> Option<bool>

source

pub fn as_i8(&self) -> Option<i8>

source

pub fn as_i16(&self) -> Option<i16>

source

pub fn as_i32(&self) -> Option<i32>

source

pub fn as_i64(&self) -> Option<i64>

source

pub fn as_i128(&self) -> Option<i128>

source

pub fn as_u8(&self) -> Option<u8>

source

pub fn as_u16(&self) -> Option<u16>

source

pub fn as_u32(&self) -> Option<u32>

source

pub fn as_u64(&self) -> Option<u64>

source

pub fn as_u128(&self) -> Option<u128>

source

pub fn as_f32(&self) -> Option<f32>

source

pub fn as_f64(&self) -> Option<f64>

source

pub fn as_char(&self) -> Option<char>

source

pub fn as_str(&self) -> Option<&str>

source

pub fn as_bytes(&self) -> Option<&[u8]>

source

pub fn as_seq(&self) -> Option<&[Self]>

source

pub fn as_tuple(&self) -> Option<&[Self]>

source

pub fn as_tuple_struct(&self) -> Option<&[Self]>

source

pub fn as_map(&self) -> Option<&[(Self, Self)]>

source

pub fn as_struct(&self) -> Option<&[(String, Self)]>

source

pub fn as_option(&self) -> Option<&Self>

source

pub fn as_unit_variant(&self) -> Option<&str>

source

pub fn as_new_type_struct(&self) -> Option<&Self>

source

pub fn as_new_type_variant(&self) -> Option<(&str, &Self)>

source

pub fn as_tuple_variant(&self) -> Option<(&str, &[Self])>

source

pub fn as_struct_variant(&self) -> Option<(&str, &[(String, Self)])>

Trait Implementations§

source§

impl Clone for Intermediate

source§

fn clone(&self) -> Intermediate

Returns a copy 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 Intermediate

source§

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

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

impl Default for Intermediate

source§

fn default() -> Intermediate

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

impl<'de> Deserialize<'de> for Intermediate

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Intermediate

source§

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

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

impl From<&str> for Intermediate

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<[Intermediate; N]> for Intermediate

source§

fn from(v: [Self; N]) -> Self

Converts to this type from the input type.
source§

impl From<()> for Intermediate

source§

fn from(_: ()) -> Self

Converts to this type from the input type.
source§

impl<A, B> From<(A, B)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>,

source§

fn from(v: (A, B)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C> From<(A, B, C)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>,

source§

fn from(v: (A, B, C)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D> From<(A, B, C, D)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>,

source§

fn from(v: (A, B, C, D)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E> From<(A, B, C, D, E)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F> From<(A, B, C, D, E, F)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I, J)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K> From<(A, B, C, D, E, F, G, H, I, J, K)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I, J, K)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> From<(A, B, C, D, E, F, G, H, I, J, K, L)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I, J, K, L)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> From<(A, B, C, D, E, F, G, H, I, J, K, L, M)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I, J, K, L, M)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>, O: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>, O: Into<Intermediate>, P: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>, O: Into<Intermediate>, P: Into<Intermediate>, Q: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>, O: Into<Intermediate>, P: Into<Intermediate>, Q: Into<Intermediate>, R: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>, O: Into<Intermediate>, P: Into<Intermediate>, Q: Into<Intermediate>, R: Into<Intermediate>, S: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>, O: Into<Intermediate>, P: Into<Intermediate>, Q: Into<Intermediate>, R: Into<Intermediate>, S: Into<Intermediate>, T: Into<Intermediate>,

source§

fn from(v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>, O: Into<Intermediate>, P: Into<Intermediate>, Q: Into<Intermediate>, R: Into<Intermediate>, S: Into<Intermediate>, T: Into<Intermediate>, U: Into<Intermediate>,

source§

fn from( v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U) ) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>, O: Into<Intermediate>, P: Into<Intermediate>, Q: Into<Intermediate>, R: Into<Intermediate>, S: Into<Intermediate>, T: Into<Intermediate>, U: Into<Intermediate>, V: Into<Intermediate>,

source§

fn from( v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V) ) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>, O: Into<Intermediate>, P: Into<Intermediate>, Q: Into<Intermediate>, R: Into<Intermediate>, S: Into<Intermediate>, T: Into<Intermediate>, U: Into<Intermediate>, V: Into<Intermediate>, X: Into<Intermediate>,

source§

fn from( v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X) ) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>, O: Into<Intermediate>, P: Into<Intermediate>, Q: Into<Intermediate>, R: Into<Intermediate>, S: Into<Intermediate>, T: Into<Intermediate>, U: Into<Intermediate>, V: Into<Intermediate>, X: Into<Intermediate>, Y: Into<Intermediate>,

source§

fn from( v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y) ) -> Self

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y, Z> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y, Z)> for Intermediatewhere A: Into<Intermediate>, B: Into<Intermediate>, C: Into<Intermediate>, D: Into<Intermediate>, E: Into<Intermediate>, F: Into<Intermediate>, G: Into<Intermediate>, H: Into<Intermediate>, I: Into<Intermediate>, J: Into<Intermediate>, K: Into<Intermediate>, L: Into<Intermediate>, M: Into<Intermediate>, N: Into<Intermediate>, O: Into<Intermediate>, P: Into<Intermediate>, Q: Into<Intermediate>, R: Into<Intermediate>, S: Into<Intermediate>, T: Into<Intermediate>, U: Into<Intermediate>, V: Into<Intermediate>, X: Into<Intermediate>, Y: Into<Intermediate>, Z: Into<Intermediate>,

source§

fn from( v: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y, Z) ) -> Self

Converts to this type from the input type.
source§

impl From<(Intermediate,)> for Intermediate

source§

fn from(v: (Self,)) -> Self

Converts to this type from the input type.
source§

impl From<HashMap<Intermediate, Intermediate, RandomState>> for Intermediate

source§

fn from(v: HashMap<Self, Self>) -> Self

Converts to this type from the input type.
source§

impl From<HashMap<String, Intermediate, RandomState>> for Intermediate

source§

fn from(v: HashMap<String, Self>) -> Self

Converts to this type from the input type.
source§

impl From<HashSet<Intermediate, RandomState>> for Intermediate

source§

fn from(v: HashSet<Self>) -> Self

Converts to this type from the input type.
source§

impl From<Option<Intermediate>> for Intermediate

source§

fn from(v: Option<Self>) -> Self

Converts to this type from the input type.
source§

impl From<Result<Intermediate, Intermediate>> for Intermediate

source§

fn from(v: Result<Self, Self>) -> Self

Converts to this type from the input type.
source§

impl From<String> for Intermediate

source§

fn from(v: String) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Intermediate, Global>> for Intermediate

source§

fn from(v: Vec<Self>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u8, Global>> for Intermediate

source§

fn from(v: Vec<u8>) -> Self

Converts to this type from the input type.
source§

impl From<bool> for Intermediate

source§

fn from(v: bool) -> Self

Converts to this type from the input type.
source§

impl From<char> for Intermediate

source§

fn from(v: char) -> Self

Converts to this type from the input type.
source§

impl From<f32> for Intermediate

source§

fn from(v: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for Intermediate

source§

fn from(v: f64) -> Self

Converts to this type from the input type.
source§

impl From<i128> for Intermediate

source§

fn from(v: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for Intermediate

source§

fn from(v: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Intermediate

source§

fn from(v: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for Intermediate

source§

fn from(v: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for Intermediate

source§

fn from(v: i8) -> Self

Converts to this type from the input type.
source§

impl From<isize> for Intermediate

source§

fn from(v: isize) -> Self

Converts to this type from the input type.
source§

impl From<u128> for Intermediate

source§

fn from(v: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Intermediate

source§

fn from(v: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Intermediate

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Intermediate

source§

fn from(v: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Intermediate

source§

fn from(v: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Intermediate

source§

fn from(v: usize) -> Self

Converts to this type from the input type.
source§

impl PartialEq<Intermediate> for Intermediate

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Intermediate> for Intermediate

source§

fn partial_cmp(&self, other: &Intermediate) -> 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

This method 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

This method 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

This method 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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl ReflectIntermediate for Intermediate

source§

fn patch_change(&mut self, change: &Change)

source§

fn before_patch_change(&mut self)

source§

fn after_patch_change(&mut self)

source§

impl Serialize for Intermediate

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Intermediate

source§

impl StructuralPartialEq for Intermediate

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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 Twhere T: Clone,

§

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> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,