pub struct Dao<'a>(pub BTreeMap<&'a str, Value>);
Tuple Fields§
§0: BTreeMap<&'a str, Value>
Implementations§
Source§impl<'a> Dao<'a>
impl<'a> Dao<'a>
pub fn new() -> Self
pub fn insert<V>(&mut self, s: &'a str, v: V)
pub fn insert_value(&mut self, s: &'a str, value: Value)
pub fn get<T>(&'a self, s: &str) -> Result<T, DaoError<'_, T>>
pub fn get_value(&self, s: &str) -> Option<&Value>
pub fn remove(&mut self, s: &str) -> Option<Value>
Trait Implementations§
impl<'a> StructuralPartialEq for Dao<'a>
Auto Trait Implementations§
impl<'a> Freeze for Dao<'a>
impl<'a> RefUnwindSafe for Dao<'a>
impl<'a> Send for Dao<'a>
impl<'a> Sync for Dao<'a>
impl<'a> Unpin for Dao<'a>
impl<'a> UnwindSafe for Dao<'a>
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