Struct cyfs_base::MapContentT
source · pub struct MapContentT<T>where
T: Send + Sync + Clone + Eq + PartialEq + Display + RawEncode + IntoObjectMapContentItem,{ /* private fields */ }
Implementations§
source§impl<T> MapContentT<T>where
T: Send + Sync + Clone + Eq + PartialEq + Display + RawEncode + IntoObjectMapContentItem,
impl<T> MapContentT<T>where T: Send + Sync + Clone + Eq + PartialEq + Display + RawEncode + IntoObjectMapContentItem,
pub fn new() -> Self
pub fn values(&self) -> &BTreeMap<String, T>
pub fn into_values(self) -> BTreeMap<String, T>
pub fn merge(&mut self, other: Self) -> BuckyResult<()>
pub fn list(&self, list: &mut ObjectMapContentList) -> BuckyResult<usize>
pub fn next(&self, it: &mut ObjectMapIterator) -> BuckyResult<()>
pub fn get_by_key(&self, key: &str) -> BuckyResult<Option<T>>
pub fn insert_with_key(&mut self, key: &str, value: &T) -> BuckyResult<()>
pub fn set_with_key( &mut self, key: &str, value: &T, prev_value: &Option<T>, auto_insert: bool ) -> BuckyResult<Option<T>>
pub fn remove_with_key( &mut self, key: &str, prev_value: &Option<T> ) -> BuckyResult<Option<T>>
Trait Implementations§
source§impl<T> Clone for MapContentT<T>where
T: Send + Sync + Clone + Eq + PartialEq + Display + RawEncode + IntoObjectMapContentItem + Clone,
impl<T> Clone for MapContentT<T>where T: Send + Sync + Clone + Eq + PartialEq + Display + RawEncode + IntoObjectMapContentItem + Clone,
source§fn clone(&self) -> MapContentT<T>
fn clone(&self) -> MapContentT<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more