pub struct Collection {
pub name: String,
/* private fields */
}Fields§
§name: StringImplementations§
Source§impl Collection
impl Collection
pub fn new(name: &str) -> Self
pub fn add(&mut self, key: &str, value: DataType) -> &mut Self
pub fn rm(&mut self, key: &str)
pub fn count(&self) -> usize
pub fn list(&self) -> HashMap<String, DataType>
pub fn get(&mut self, key: &str) -> Option<&DataType>
pub fn dump(&self) -> String
pub fn load(data: &str) -> Collection
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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