Trait serde_lite::Update

source ·
pub trait Update: Deserialize {
    // Required method
    fn update(&mut self, val: &Intermediate) -> Result<(), Error>;
}
Expand description

Update trait.

The trait can be used for objects that can be updated from the intermediate representation.

Required Methods§

source

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

Update the object.

Implementations on Foreign Types§

source§

impl Update for bool

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for char

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for f32

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for f64

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for i8

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for i16

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for i32

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for i64

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for i128

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for isize

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for u8

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for u16

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for u32

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for u64

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for u128

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for ()

source§

fn update(&mut self, _: &Intermediate) -> Result<(), Error>

source§

impl Update for usize

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl Update for String

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl<K, V> Update for HashMap<K, V>where K: From<Cow<'static, str>> + Borrow<str> + Eq + Hash, V: Update,

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Update for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)where T0: Update, T1: Update, T2: Update, T3: Update, T4: Update, T5: Update, T6: Update, T7: Update, T8: Update, T9: Update, T10: Update, T11: Update, T12: Update,

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Update for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)where T0: Update, T1: Update, T2: Update, T3: Update, T4: Update, T5: Update, T6: Update, T7: Update, T8: Update, T9: Update, T10: Update, T11: Update, T12: Update, T13: Update,

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Update for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)where T0: Update, T1: Update, T2: Update, T3: Update, T4: Update, T5: Update, T6: Update, T7: Update, T8: Update, T9: Update, T10: Update, T11: Update, T12: Update, T13: Update, T14: Update,

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Update for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where T0: Update, T1: Update, T2: Update, T3: Update, T4: Update, T5: Update, T6: Update, T7: Update, T8: Update, T9: Update, T10: Update, T11: Update, T12: Update, T13: Update, T14: Update, T15: Update,

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl<T> Update for [T; 0]

source§

fn update(&mut self, _: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl<T> Update for Box<T>where T: Update,

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl<T> Update for Rc<RefCell<T>>where T: Update,

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl<T> Update for Arc<Mutex<T>>where T: Update,

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

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

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl<T> Update for RefCell<T>where T: Update,

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

source§

impl<T> Update for Mutex<T>where T: Update,

source§

fn update(&mut self, val: &Intermediate) -> Result<(), Error>

Implementors§