Trait assembly_fdb_core::value::ValueMapperMut
source · [−]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
sourcefn map_string(&mut self, from: &TI::String) -> TO::String
fn map_string(&mut self, from: &TI::String) -> TO::String
Called when mapping a string