Trait serde_lite::Serialize

source ·
pub trait Serialize {
    // Required method
    fn serialize(&self) -> Result<Intermediate, Error>;
}
Expand description

Serialize trait.

The trait can be implemented by objects the can serialized to the intermediate representation.

Required Methods§

source

fn serialize(&self) -> Result<Intermediate, Error>

Serialize the object.

Implementations on Foreign Types§

source§

impl Serialize for bool

source§

impl Serialize for char

source§

impl Serialize for f32

source§

impl Serialize for f64

source§

impl Serialize for i8

source§

impl Serialize for i16

source§

impl Serialize for i32

source§

impl Serialize for i64

source§

impl Serialize for i128

source§

impl Serialize for isize

source§

impl Serialize for u8

source§

impl Serialize for u16

source§

impl Serialize for u32

source§

impl Serialize for u64

source§

impl Serialize for u128

source§

impl Serialize for ()

source§

impl Serialize for usize

source§

impl Serialize for String

source§

impl<'a> Serialize for &'a str

source§

impl<'a, T> Serialize for &'a [T]where T: Serialize,

source§

impl<'a, T> Serialize for &'a mut [T]where T: Serialize,

source§

impl<'a, T> Serialize for &'a Twhere T: Serialize + ?Sized,

source§

impl<'a, T> Serialize for &'a mut Twhere T: Serialize + ?Sized,

source§

impl<K, V> Serialize for HashMap<K, V>where K: ToString, V: Serialize,

source§

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

source§

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

source§

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

source§

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

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§

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§

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§

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§

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§

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§

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§

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§

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§

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§

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§

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§

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

source§

impl<T> Serialize for [T; 0]

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<T> Serialize for Box<T>where T: Serialize + ?Sized,

source§

impl<T> Serialize for Rc<T>where T: Serialize + ?Sized,

source§

impl<T> Serialize for Arc<T>where T: Serialize + ?Sized,

source§

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

source§

impl<T> Serialize for RefCell<T>where T: Serialize + ?Sized,

source§

impl<T> Serialize for Mutex<T>where T: Serialize + ?Sized,

Implementors§