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<T> Serialize for [T; 31]where
T: Serialize,
impl<T> Serialize for [T; 31]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<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)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,
T15: Serialize,
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)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,
T15: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 8]where
T: Serialize,
impl<T> Serialize for [T; 8]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for VecDeque<T, Global>where
T: Serialize,
impl<T> Serialize for VecDeque<T, Global>where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<K, V> Serialize for BTreeMap<K, V, Global>where
K: SerObjKey,
V: Serialize,
impl<K, V> Serialize for BTreeMap<K, V, Global>where
K: SerObjKey,
V: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 17]where
T: Serialize,
impl<T> Serialize for [T; 17]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 21]where
T: Serialize,
impl<T> Serialize for [T; 21]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T0, T1> Serialize for (T0, T1)where
T0: Serialize,
T1: Serialize,
impl<T0, T1> Serialize for (T0, T1)where
T0: Serialize,
T1: 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; 13]where
T: Serialize,
impl<T> Serialize for [T; 13]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<T> Serialize for BinaryHeap<T>where
T: Serialize,
impl<T> Serialize for BinaryHeap<T>where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 28]where
T: Serialize,
impl<T> Serialize for [T; 28]where
T: 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<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<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<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> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
T7: Serialize,
T8: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<'a, T> Serialize for &'a Twhere
T: Serialize + ?Sized,
impl<'a, T> Serialize for &'a Twhere
T: Serialize + ?Sized,
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<T> Serialize for Box<T, Global>where
T: Serialize + ?Sized,
impl<T> Serialize for Box<T, Global>where
T: Serialize + ?Sized,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T> Serialize for [T; 25]where
T: Serialize,
impl<T> Serialize for [T; 25]where
T: Serialize,
fn to_bytes_mut<B>(&self, buf: &mut B)where
B: Buffer,
sourceimpl<T0, T1, T2, T3, T4, T5, T6> Serialize for (T0, T1, T2, T3, T4, T5, T6)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: Serialize,
impl<T0, T1, T2, T3, T4, T5, T6> Serialize for (T0, T1, T2, T3, T4, T5, T6)where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
T5: Serialize,
T6: 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> 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 [T; 26]where
T: Serialize,
impl<T> Serialize for [T; 26]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.