pub trait ValueMapperMut<TI, TO>where
    TI: Context,
    TO: Context,
{ fn map_string(&mut self, from: &TI::String) -> TO::String; fn map_i64(&mut self, from: &TI::I64) -> TO::I64; fn map_xml(&mut self, from: &TI::XML) -> TO::XML; }
Expand description

Trait for mapping value from one context to another

This traits allows us to implement a generic Value::map function that works similar to three FnMut closures but can guarantee that only one of them ever borrows Self mutably at the same time.

Required Methods

Called when mapping a string

Called when mapping an i64

Called when mapping an XML value

Implementors