pub trait Serialize {
fn to_bytes_mut<B>(&self, buf: &mut B)
where
B: Buffer;
fn to_bytes<B>(&self, capacity: usize) -> <B as Buffer>::Freeze
where
B: Buffer,
{ ... }
}
Required Methods
sourcefn to_bytes_mut<B>(&self, buf: &mut B)where
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
Provided Methods
Implementations on Foreign Types
sourceimpl<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)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
T9: Serialize,
T10: Serialize,
T11: Serialize,
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)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
T9: Serialize,
T10: Serialize,
T11: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for BTreeSet<T, Global>where
T: Serialize,
impl<T> Serialize for BTreeSet<T, Global>where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 7]where
T: Serialize,
impl<T> Serialize for [T; 7]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 15]where
T: Serialize,
impl<T> Serialize for [T; 15]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<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)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
T9: Serialize,
T10: Serialize,
T11: Serialize,
T12: Serialize,
T13: Serialize,
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)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
T9: Serialize,
T10: Serialize,
T11: Serialize,
T12: Serialize,
T13: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T0, T1, T2, T3, T4> Serialize for (T0, T1, T2, T3, T4)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
impl<T0, T1, T2, T3, T4> Serialize for (T0, T1, T2, T3, T4)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T0, T1, T2> Serialize for (T0, T1, T2)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
impl<T0, T1, T2> Serialize for (T0, T1, T2)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 9]where
T: Serialize,
impl<T> Serialize for [T; 9]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 22]where
T: Serialize,
impl<T> Serialize for [T; 22]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 19]where
T: Serialize,
impl<T> Serialize for [T; 19]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 20]where
T: Serialize,
impl<T> Serialize for [T; 20]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<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)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
T9: Serialize,
T10: Serialize,
T11: Serialize,
T12: Serialize,
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)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
T9: Serialize,
T10: Serialize,
T11: Serialize,
T12: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 6]where
T: Serialize,
impl<T> Serialize for [T; 6]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
T9: Serialize,
T10: Serialize,
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)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
T9: Serialize,
T10: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 29]where
T: Serialize,
impl<T> Serialize for [T; 29]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 12]where
T: Serialize,
impl<T> Serialize for [T; 12]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 2]where
T: Serialize,
impl<T> Serialize for [T; 2]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<K, V, H> Serialize for HashMap<K, V, H>where
K: SerObjKey,
V: Serialize,
H: BuildHasher,
impl<K, V, H> Serialize for HashMap<K, V, H>where
K: SerObjKey,
V: Serialize,
H: BuildHasher,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<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)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
T9: Serialize,
T10: Serialize,
T11: Serialize,
T12: Serialize,
T13: Serialize,
T14: Serialize,
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)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
T9: Serialize,
T10: Serialize,
T11: Serialize,
T12: Serialize,
T13: Serialize,
T14: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T0> Serialize for (T0,)where
T0: Serialize,
impl<T0> Serialize for (T0,)where
T0: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 10]where
T: Serialize,
impl<T> Serialize for [T; 10]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T]where
T: Serialize,
impl<T> Serialize for [T]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 16]where
T: Serialize,
impl<T> Serialize for [T; 16]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 32]where
T: Serialize,
impl<T> Serialize for [T; 32]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 14]where
T: Serialize,
impl<T> Serialize for [T; 14]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for Vec<T, Global>where
T: Serialize,
impl<T> Serialize for Vec<T, Global>where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<Tz> Serialize for DateTime<Tz>where
Tz: TimeZone,
impl<Tz> Serialize for DateTime<Tz>where
Tz: TimeZone,
sourcefn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
Serialize into a rfc3339 time string
See the serde
module for alternate
serializations.