pub struct MemoData {
pub contents: HashMap<u32, Content>,
}
Expand description
Struct that holds all the data of the application The data is stored in a HashMap where the key is the id of the item and the value is the content.
Fields§
§contents: HashMap<u32, Content>
Implementations§
source§impl MemoData
impl MemoData
Trait Implementations§
source§impl DataFile for MemoData
impl DataFile for MemoData
Implement DataFile trait for MemoData
source§fn sorted_ids(&self) -> Vec<u32>
fn sorted_ids(&self) -> Vec<u32>
Return sorted ids of items in MemoData
Auto Trait Implementations§
impl RefUnwindSafe for MemoData
impl Send for MemoData
impl Sync for MemoData
impl Unpin for MemoData
impl UnwindSafe for MemoData
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