pub struct SimpleData { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Data for SimpleData
impl Data for SimpleData
fn new(type_name: &'static str) -> Selfwhere
Self: Sized,
fn new_with_inner(
type_name: &'static str,
inner_type_name: &'static str,
) -> Selfwhere
Self: Sized,
fn type_name(&self) -> &'static str
fn inner_type_name(&self) -> Option<&'static str>
fn rows(&self) -> &BTreeMap<String, Map<String, Value>>
fn rows_mut(&mut self) -> &mut BTreeMap<String, Map<String, Value>>
fn into_rows(self) -> BTreeMap<String, Map<String, Value>>
fn has_inner_type(&self) -> bool
fn all_ids(&self) -> Vec<&String>
fn all_ids_sorted(&self) -> Value
fn contains(&self, id: &str) -> bool
fn get(&self, id: &str) -> Option<&DataRow>
fn get_mut(&mut self, id: &str) -> Option<&mut DataRow>
fn insert_row(&mut self, id: &str, row: DataRow)
fn insert_row_value(&mut self, id: &str, key: &str, value: Value)
Source§impl Debug for SimpleData
impl Debug for SimpleData
Source§impl Default for SimpleData
impl Default for SimpleData
Source§fn default() -> SimpleData
fn default() -> SimpleData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimpleData
impl RefUnwindSafe for SimpleData
impl Send for SimpleData
impl Sync for SimpleData
impl Unpin for SimpleData
impl UnwindSafe for SimpleData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more