pub trait Serialize {
// Required method
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer;
}
Expand description
A data structure that can be serialized into any data format supported by Serde.
Serde provides Serialize
implementations for many Rust primitive and
standard library types. The complete list is here. All of
these can be serialized using Serde out of the box.
Additionally, Serde provides a procedural macro called serde_derive
to
automatically generate Serialize
implementations for structs and enums in
your program. See the derive section of the manual for how to use this.
In rare cases it may be necessary to implement Serialize
manually for some
type in your program. See the Implementing Serialize
section of the
manual for more about this.
Third-party crates may provide Serialize
implementations for types that
they expose. For example the linked-hash-map
crate provides a
LinkedHashMap<K, V>
type that is serializable by Serde because the crate
provides an implementation of Serialize
for it.
Required Methods§
sourcefn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer.
See the Implementing Serialize
section of the manual for more
information about how to implement this method.
use serde::ser::{Serialize, SerializeStruct, Serializer};
struct Person {
name: String,
age: u8,
phones: Vec<String>,
}
// This is what #[derive(Serialize)] would generate.
impl Serialize for Person {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
{
let mut s = serializer.serialize_struct("Person", 3)?;
s.serialize_field("name", &self.name)?;
s.serialize_field("age", &self.age)?;
s.serialize_field("phones", &self.phones)?;
s.end()
}
}
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
source§impl Serialize for Glob
impl Serialize for Glob
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for NamespaceChunk
impl Serialize for NamespaceChunk
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for InstanceType
impl Serialize for InstanceType
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for Schema
impl Serialize for Schema
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for Value
impl Serialize for Value
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for IpAddr
impl Serialize for IpAddr
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for SocketAddr
impl Serialize for SocketAddr
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for bool
impl Serialize for bool
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for char
impl Serialize for char
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for f32
impl Serialize for f32
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for f64
impl Serialize for f64
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for i8
impl Serialize for i8
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for i16
impl Serialize for i16
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for i32
impl Serialize for i32
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for i64
impl Serialize for i64
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for i128
impl Serialize for i128
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for isize
impl Serialize for isize
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for str
impl Serialize for str
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for u8
impl Serialize for u8
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for u16
impl Serialize for u16
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for u32
impl Serialize for u32
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for u64
impl Serialize for u64
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for u128
impl Serialize for u128
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for ()
impl Serialize for ()
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for usize
impl Serialize for usize
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for Namespace
impl Serialize for Namespace
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for ArrayValidation
impl Serialize for ArrayValidation
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for Metadata
impl Serialize for Metadata
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for NumberValidation
impl Serialize for NumberValidation
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for ObjectValidation
impl Serialize for ObjectValidation
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for RootSchema
impl Serialize for RootSchema
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for SchemaObject
impl Serialize for SchemaObject
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for StringValidation
impl Serialize for StringValidation
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for SubschemaValidation
impl Serialize for SubschemaValidation
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl Serialize for Map<String, Value>
impl Serialize for Map<String, Value>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for Number
impl Serialize for Number
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for CString
impl Serialize for CString
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for String
impl Serialize for String
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for CStr
impl Serialize for CStr
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for Ipv4Addr
impl Serialize for Ipv4Addr
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for Ipv6Addr
impl Serialize for Ipv6Addr
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for SocketAddrV4
impl Serialize for SocketAddrV4
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for SocketAddrV6
impl Serialize for SocketAddrV6
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<i8>
impl Serialize for NonZero<i8>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<i16>
impl Serialize for NonZero<i16>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<i32>
impl Serialize for NonZero<i32>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<i64>
impl Serialize for NonZero<i64>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<i128>
impl Serialize for NonZero<i128>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<isize>
impl Serialize for NonZero<isize>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<u8>
impl Serialize for NonZero<u8>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<u16>
impl Serialize for NonZero<u16>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<u32>
impl Serialize for NonZero<u32>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<u64>
impl Serialize for NonZero<u64>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<u128>
impl Serialize for NonZero<u128>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for NonZero<usize>
impl Serialize for NonZero<usize>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for AtomicBool
impl Serialize for AtomicBool
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for AtomicI8
impl Serialize for AtomicI8
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for AtomicI16
impl Serialize for AtomicI16
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for AtomicI32
impl Serialize for AtomicI32
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for AtomicI64
impl Serialize for AtomicI64
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for AtomicIsize
impl Serialize for AtomicIsize
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for AtomicU8
impl Serialize for AtomicU8
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for AtomicU16
impl Serialize for AtomicU16
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for AtomicU32
impl Serialize for AtomicU32
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for AtomicU64
impl Serialize for AtomicU64
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for AtomicUsize
impl Serialize for AtomicUsize
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for Duration
impl Serialize for Duration
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for OsStr
impl Serialize for OsStr
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for OsString
impl Serialize for OsString
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for Path
impl Serialize for Path
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Serialize for SystemTime
impl Serialize for SystemTime
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<'a> Serialize for Arguments<'a>
impl<'a> Serialize for Arguments<'a>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<'a, T> Serialize for Cow<'a, T>
impl<'a, T> Serialize for Cow<'a, T>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<'a, T> Serialize for &'a T
impl<'a, T> Serialize for &'a T
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<'a, T> Serialize for &'a mut T
impl<'a, T> Serialize for &'a mut T
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<Idx> Serialize for Range<Idx>where
Idx: Serialize,
impl<Idx> Serialize for Range<Idx>where
Idx: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<Idx> Serialize for RangeFrom<Idx>where
Idx: Serialize,
impl<Idx> Serialize for RangeFrom<Idx>where
Idx: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<Idx> Serialize for RangeInclusive<Idx>where
Idx: Serialize,
impl<Idx> Serialize for RangeInclusive<Idx>where
Idx: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<Idx> Serialize for RangeTo<Idx>where
Idx: Serialize,
impl<Idx> Serialize for RangeTo<Idx>where
Idx: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<K, V> Serialize for BTreeMap<K, V>
impl<K, V> Serialize for BTreeMap<K, V>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1> Serialize for (T0, T1)
impl<T0, T1> Serialize for (T0, T1)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2> Serialize for (T0, T1, T2)
impl<T0, T1, T2> Serialize for (T0, T1, T2)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3> Serialize for (T0, T1, T2, T3)
impl<T0, T1, T2, T3> Serialize for (T0, T1, T2, T3)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4> Serialize for (T0, T1, T2, T3, T4)
impl<T0, T1, T2, T3, T4> Serialize for (T0, T1, T2, T3, T4)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4, T5> Serialize for (T0, T1, T2, T3, T4, T5)
impl<T0, T1, T2, T3, T4, T5> Serialize for (T0, T1, T2, T3, T4, T5)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4, T5, T6> Serialize for (T0, T1, T2, T3, T4, T5, T6)
impl<T0, T1, T2, T3, T4, T5, T6> Serialize for (T0, T1, T2, T3, T4, T5, T6)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7)
impl<T0, T1, T2, T3, T4, T5, T6, T7> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for SingleOrVec<T>where
T: Serialize,
impl<T> Serialize for SingleOrVec<T>where
T: Serialize,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl<T> Serialize for Bound<T>where
T: Serialize,
impl<T> Serialize for Bound<T>where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for Option<T>where
T: Serialize,
impl<T> Serialize for Option<T>where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 0]
impl<T> Serialize for [T; 0]
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 1]where
T: Serialize,
impl<T> Serialize for [T; 1]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 2]where
T: Serialize,
impl<T> Serialize for [T; 2]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 3]where
T: Serialize,
impl<T> Serialize for [T; 3]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 4]where
T: Serialize,
impl<T> Serialize for [T; 4]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 5]where
T: Serialize,
impl<T> Serialize for [T; 5]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 6]where
T: Serialize,
impl<T> Serialize for [T; 6]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 7]where
T: Serialize,
impl<T> Serialize for [T; 7]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 8]where
T: Serialize,
impl<T> Serialize for [T; 8]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 9]where
T: Serialize,
impl<T> Serialize for [T; 9]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 10]where
T: Serialize,
impl<T> Serialize for [T; 10]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 11]where
T: Serialize,
impl<T> Serialize for [T; 11]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 12]where
T: Serialize,
impl<T> Serialize for [T; 12]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 13]where
T: Serialize,
impl<T> Serialize for [T; 13]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 14]where
T: Serialize,
impl<T> Serialize for [T; 14]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 15]where
T: Serialize,
impl<T> Serialize for [T; 15]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 16]where
T: Serialize,
impl<T> Serialize for [T; 16]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 17]where
T: Serialize,
impl<T> Serialize for [T; 17]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 18]where
T: Serialize,
impl<T> Serialize for [T; 18]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 19]where
T: Serialize,
impl<T> Serialize for [T; 19]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 20]where
T: Serialize,
impl<T> Serialize for [T; 20]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 21]where
T: Serialize,
impl<T> Serialize for [T; 21]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 22]where
T: Serialize,
impl<T> Serialize for [T; 22]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 23]where
T: Serialize,
impl<T> Serialize for [T; 23]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 24]where
T: Serialize,
impl<T> Serialize for [T; 24]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 25]where
T: Serialize,
impl<T> Serialize for [T; 25]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 26]where
T: Serialize,
impl<T> Serialize for [T; 26]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 27]where
T: Serialize,
impl<T> Serialize for [T; 27]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 28]where
T: Serialize,
impl<T> Serialize for [T; 28]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 29]where
T: Serialize,
impl<T> Serialize for [T; 29]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 30]where
T: Serialize,
impl<T> Serialize for [T; 30]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 31]where
T: Serialize,
impl<T> Serialize for [T; 31]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T; 32]where
T: Serialize,
impl<T> Serialize for [T; 32]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for [T]where
T: Serialize,
impl<T> Serialize for [T]where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for (T,)where
T: Serialize,
impl<T> Serialize for (T,)where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for Box<T>
impl<T> Serialize for Box<T>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for BinaryHeap<T>where
T: Serialize,
impl<T> Serialize for BinaryHeap<T>where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for BTreeSet<T>where
T: Serialize,
impl<T> Serialize for BTreeSet<T>where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for LinkedList<T>where
T: Serialize,
impl<T> Serialize for LinkedList<T>where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for VecDeque<T>where
T: Serialize,
impl<T> Serialize for VecDeque<T>where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for Weak<T>
impl<T> Serialize for Weak<T>
This impl requires the "rc"
Cargo feature of Serde.
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for Arc<T>
impl<T> Serialize for Arc<T>
This impl requires the "rc"
Cargo feature of Serde.
Serializing a data structure containing Arc
will serialize a copy of
the contents of the Arc
each time the Arc
is referenced within the
data structure. Serialization will not attempt to deduplicate these
repeated data.
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for Weak<T>
impl<T> Serialize for Weak<T>
This impl requires the "rc"
Cargo feature of Serde.
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for Vec<T>where
T: Serialize,
impl<T> Serialize for Vec<T>where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for Cell<T>
impl<T> Serialize for Cell<T>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for RefCell<T>
impl<T> Serialize for RefCell<T>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for Reverse<T>where
T: Serialize,
impl<T> Serialize for Reverse<T>where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for PhantomData<T>where
T: ?Sized,
impl<T> Serialize for PhantomData<T>where
T: ?Sized,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for Saturating<T>where
T: Serialize,
impl<T> Serialize for Saturating<T>where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for Wrapping<T>where
T: Serialize,
impl<T> Serialize for Wrapping<T>where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for Mutex<T>
impl<T> Serialize for Mutex<T>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T> Serialize for RwLock<T>
impl<T> Serialize for RwLock<T>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T, E> Serialize for Result<T, E>
impl<T, E> Serialize for Result<T, E>
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl<T, H> Serialize for HashSet<T, H>where
T: Serialize,
impl<T, H> Serialize for HashSet<T, H>where
T: Serialize,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Implementors§
impl Serialize for ConstantExprKind
impl Serialize for ConstantInt
impl Serialize for ConstantLiteral
impl Serialize for hax_frontend_exporter::id_table::Value
impl Serialize for Foo
impl Serialize for ImplExprAtom
impl Serialize for ImplExprPathChunk
impl Serialize for DefPathItem
impl Serialize for Abi
impl Serialize for AssocItemKind
impl Serialize for AttrArgs
impl Serialize for AttrArgsEq
impl Serialize for AttrKind
impl Serialize for AttrStyle
impl Serialize for ByRef
impl Serialize for CommentKind
impl Serialize for Constness
impl Serialize for CtorKind
impl Serialize for CtorOf
impl Serialize for DefKind
impl Serialize for Defaultness
impl Serialize for DelimSpan
impl Serialize for Delimiter
impl Serialize for FnRetTy
impl Serialize for HirGenericArgs
impl Serialize for ImplPolarity
impl Serialize for ImplicitSelfKind
impl Serialize for InlineAsm
impl Serialize for InlineAttr
impl Serialize for IsAsync
impl Serialize for IsAuto
impl Serialize for LifetimeParamKind
impl Serialize for LitFloatType
impl Serialize for LitKind
impl Serialize for MissingLifetimeKind
impl Serialize for Movability
impl Serialize for NonMacroAttrKind
impl Serialize for OpaqueTyOrigin
impl Serialize for OwnerId
impl Serialize for ParamName
impl Serialize for PrimTy
impl Serialize for QPath
impl Serialize for RangeEnd
impl Serialize for Res
impl Serialize for Safety
impl Serialize for StrStyle
impl Serialize for UseKind
impl Serialize for VariantData
impl Serialize for WhereEqPredicate
impl Serialize for WhereRegionPredicate
impl Serialize for AggregateKind
impl Serialize for AnalysisPhase
impl Serialize for AssertMessage
impl Serialize for BasicBlock
impl Serialize for BinOp
impl Serialize for BorrowKind
impl Serialize for CallSource
impl Serialize for CastKind
impl Serialize for CoercionSource
impl Serialize for ConstAllocation
impl Serialize for CoroutineInfo
impl Serialize for CoverageKind
impl Serialize for FakeBorrowKind
impl Serialize for FakeReadCause
impl Serialize for FieldIdx
impl Serialize for FunOperand
impl Serialize for InlineAsmOperand
impl Serialize for InlineAsmOptions
impl Serialize for InlineAsmTemplatePiece
impl Serialize for InstanceKind
impl Serialize for IntUintTy
impl Serialize for Local
impl Serialize for LocalInfo
impl Serialize for MirPhase
impl Serialize for MirSource
impl Serialize for MutBorrowKind
impl Serialize for NonDivergingIntrinsic
impl Serialize for NullOp
impl Serialize for Operand
impl Serialize for PlaceKind
impl Serialize for ProjectionElem
impl Serialize for ProjectionElemFieldKind
impl Serialize for RetagKind
impl Serialize for RuntimePhase
impl Serialize for Rvalue
impl Serialize for ScopeData
impl Serialize for SourceScope
impl Serialize for StatementKind
impl Serialize for SwitchTargets
impl Serialize for TerminatorKind
impl Serialize for UnOp
impl Serialize for UnwindAction
impl Serialize for UnwindTerminateReason
impl Serialize for UserTypeAnnotationIndex
impl Serialize for UserTypeProjection
impl Serialize for UserTypeProjections
impl Serialize for VarDebugInfo
impl Serialize for VariantKind
impl Serialize for AstPass
impl Serialize for DesugaringKind
impl Serialize for Edition
impl Serialize for ErrorGuaranteed
impl Serialize for ExpnKind
impl Serialize for FileName
impl Serialize for MacroKind
impl Serialize for RealFileName
impl Serialize for BlockSafety
impl Serialize for ExprKind
impl Serialize for LintLevel
impl Serialize for LogicalOp
impl Serialize for PatKind
impl Serialize for PatRangeBoundary
impl Serialize for StmtKind
impl Serialize for AdtFlags
impl Serialize for AdtKind
impl Serialize for AliasKind
impl Serialize for AliasRelationDirection
impl Serialize for Align
impl Serialize for AssocItemContainer
impl Serialize for AssocKind
impl Serialize for BoundRegionKind
impl Serialize for BoundTyKind
impl Serialize for BoundVariableKind
impl Serialize for CanonicalTyVarKind
impl Serialize for CanonicalVarInfo
impl Serialize for ClauseKind
impl Serialize for ClosureKind
impl Serialize for DiscriminantDefinition
impl Serialize for DynKind
impl Serialize for ExistentialPredicate
impl Serialize for FloatTy
impl Serialize for GenericArg
impl Serialize for GenericParamDefKind
impl Serialize for ImplTraitInTraitData
impl Serialize for InferTy
impl Serialize for IntTy
impl Serialize for IntegerType
impl Serialize for LitIntType
impl Serialize for NormalizesTo
impl Serialize for PointerCoercion
impl Serialize for PredicateKind
impl Serialize for RegionKind
impl Serialize for ReprFlags
impl Serialize for hax_frontend_exporter::types::ty::ScalarInt
impl Serialize for Term
impl Serialize for TyKind
impl Serialize for UintTy
impl Serialize for UserType
impl Serialize for Variance
impl Serialize for ConstantFieldExpr
impl Serialize for Pair
impl Serialize for Id
impl Serialize for Table
impl Serialize for PathBuf
impl Serialize for ImplExpr
impl Serialize for DefId
impl Serialize for DefIdContents
impl Serialize for DisambiguatedDefPathItem
impl Serialize for AttrItem
impl Serialize for Attribute
impl Serialize for BindingMode
impl Serialize for DelimArgs
impl Serialize for FnDecl
impl Serialize for FnHeader
impl Serialize for FnSig
impl Serialize for HirFieldDef
impl Serialize for HirId
impl Serialize for MacroDef
impl Serialize for MacroInvokation
impl Serialize for MetaItemLit
impl Serialize for NormalAttr
impl Serialize for PathSegment
impl Serialize for UsePath
impl Serialize for Built
impl Serialize for CTFE
impl Serialize for Elaborated
impl Serialize for Optimized
impl Serialize for Promoted
impl Serialize for BasicBlockData
impl Serialize for Constant
impl Serialize for CopyNonOverlapping
impl Serialize for Instance
impl Serialize for LocalDecl
impl Serialize for Place
impl Serialize for hax_frontend_exporter::types::mir::ScalarInt
impl Serialize for Scope
impl Serialize for SourceInfo
impl Serialize for SourceScopeData
impl Serialize for SourceScopeLocalData
impl Serialize for Statement
impl Serialize for Terminator
impl Serialize for ImplInfos
impl Serialize for ItemAttributes
impl Serialize for PredicateId
impl Serialize for TypedConstantKind
impl Serialize for VariantInformations
impl Serialize for ExpnData
impl Serialize for Loc
impl Serialize for Span
impl Serialize for AdtExpr
impl Serialize for Arm
impl Serialize for Ascription
impl Serialize for Block
impl Serialize for FieldExpr
impl Serialize for FieldPat
impl Serialize for FruInfo
impl Serialize for LocalIdent
impl Serialize for Param
impl Serialize for PatRange
impl Serialize for Stmt
impl Serialize for AdtDef
impl Serialize for Alias
impl Serialize for AssocItem
impl Serialize for BoundRegion
impl Serialize for BoundTy
impl Serialize for CanonicalUserTypeAnnotation
impl Serialize for Clause
impl Serialize for ClosureArgs
impl Serialize for CoercePredicate
impl Serialize for DiscriminantValue
impl Serialize for EarlyParamRegion
impl Serialize for ExistentialProjection
impl Serialize for ExistentialTraitRef
impl Serialize for FieldDef
impl Serialize for GenericParamDef
impl Serialize for GenericPredicates
impl Serialize for LateParamRegion
impl Serialize for ParamConst
impl Serialize for ParamTy
impl Serialize for Predicate
impl Serialize for ProjectionPredicate
impl Serialize for Region
impl Serialize for ReprOptions
impl Serialize for SubtypePredicate
impl Serialize for TraitPredicate
impl Serialize for TraitRef
impl Serialize for Ty
impl Serialize for TyFnSig
impl Serialize for TyGenerics
impl Serialize for TypeAndMut
impl Serialize for UserArgs
impl Serialize for UserSelfTy
impl Serialize for VariantDef
impl<Body> Serialize for ConstArgKind<Body>
impl<Body> Serialize for ForeignItemKind<Body>
impl<Body> Serialize for GenericParamKind<Body>
impl<Body> Serialize for ImplItemKind<Body>
impl<Body> Serialize for ItemKind<Body>
impl<Body> Serialize for TraitItemKind<Body>
impl<Body> Serialize for FullDefKind<Body>where
Body: Serialize,
impl<Body> Serialize for ImplAssocItemValue<Body>where
Body: Serialize,
impl<Body> Serialize for AnonConst<Body>
impl<Body> Serialize for ConstArg<Body>
impl<Body> Serialize for FnDef<Body>
impl<Body> Serialize for ForeignItem<Body>
impl<Body> Serialize for GenericParam<Body>
impl<Body> Serialize for Generics<Body>
impl<Body> Serialize for Impl<Body>
impl<Body> Serialize for ImplItem<Body>
impl<Body> Serialize for Item<Body>
impl<Body> Serialize for OpaqueTy<Body>
impl<Body> Serialize for TraitItem<Body>
impl<Body> Serialize for Variant<Body>
impl<Body> Serialize for FullDef<Body>where
Body: Serialize,
impl<Body> Serialize for ImplAssocItem<Body>where
Body: Serialize,
impl<I: 'static, T> Serialize for IndexVec<I, T>where
T: Serialize + 'static,
impl<Id> Serialize for Visibility<Id>where
Id: Serialize,
impl<K, V, H> Serialize for HashMap<K, V, H>
impl<KIND> Serialize for MirBody<KIND>
impl<T> Serialize for ClearCrossCrate<T>where
T: Serialize,
impl<T> Serialize for NodeRepr<T>where
T: Serialize,
impl<T> Serialize for WithTableRepr<T>where
T: Serialize,
impl<T> Serialize for Node<T>
impl<T> Serialize for Rc<T>
This impl requires the "rc"
Cargo feature of Serde.
Serializing a data structure containing Rc
will serialize a copy of
the contents of the Rc
each time the Rc
is referenced within the
data structure. Serialization will not attempt to deduplicate these
repeated data.