ActiveMap

Trait ActiveMap 

Source
pub trait ActiveMap: ActiveRecord {
    // Required methods
    fn active_map_insert(&mut self, key: String, value: RawRecord);
    fn active_map_remove(&mut self, key: String);
    fn state(
        &self,
        other: Option<&str>,
        children: &BTreeSet<String>,
    ) -> (bool, BTreeMap<String, Ordering>);
}

Required Methods§

Source

fn active_map_insert(&mut self, key: String, value: RawRecord)

Source

fn active_map_remove(&mut self, key: String)

Source

fn state( &self, other: Option<&str>, children: &BTreeSet<String>, ) -> (bool, BTreeMap<String, Ordering>)

Implementations on Foreign Types§

Source§

impl<K, T> ActiveMap for BTreeMap<K, T>
where K: Ord + Display + FromStr, <K as FromStr>::Err: Debug, T: ActiveRecord,

Source§

fn active_map_insert(&mut self, key: String, value: RawRecord)

Source§

fn active_map_remove(&mut self, key: String)

Source§

fn state( &self, _other: Option<&str>, children: &BTreeSet<String>, ) -> (bool, BTreeMap<String, Ordering>)

Source§

impl<T> ActiveMap for Vec<T>
where T: ActiveRecord,

Source§

fn active_map_insert(&mut self, key: String, value: RawRecord)

Source§

fn active_map_remove(&mut self, key: String)

Source§

fn state( &self, _other: Option<&str>, children: &BTreeSet<String>, ) -> (bool, BTreeMap<String, Ordering>)

Implementors§