ptah::ser

Trait Serialize

Source
pub trait Serialize {
    // Required method
    fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
       where W: Writer;
}

Required Methods§

Source

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

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 bool

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for char

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for f32

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for f64

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for i8

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for i16

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for i32

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for i64

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for i128

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for isize

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for !

Source§

fn serialize<W>(&self, _serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for str

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for u8

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for u16

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for u32

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for u64

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for u128

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for ()

Source§

fn serialize<W>(&self, _serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for usize

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl Serialize for String

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<K, V> Serialize for BTreeMap<K, V>
where K: Serialize, V: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T0> Serialize for (T0,)
where T0: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T0, T1> Serialize for (T0, T1)
where T0: Serialize, T1: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T0, T1, T2> Serialize for (T0, T1, T2)
where T0: Serialize, T1: Serialize, T2: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T0, T1, T2, T3> Serialize for (T0, T1, T2, T3)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T0, T1, T2, T3, T4> Serialize for (T0, T1, T2, T3, T4)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T0, T1, T2, T3, T4, T5> Serialize for (T0, T1, T2, T3, T4, T5)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

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,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

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,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize, T8: Serialize, T9: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

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)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize, T8: Serialize, T9: Serialize, T10: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

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)
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,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

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)
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,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

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)
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,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

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)
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,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

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)
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,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T> Serialize for Option<T>
where T: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T> Serialize for [T]
where T: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T> Serialize for Vec<T>
where T: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Source§

impl<T, const N: usize> Serialize for [T; N]
where T: Serialize,

Source§

fn serialize<W>(&self, serializer: &mut Serializer<W>) -> Result<()>
where W: Writer,

Implementors§