mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
add Default implementation
This commit is contained in:
parent
96f81addcb
commit
1d5fa4febb
3 changed files with 18 additions and 0 deletions
|
|
@ -11,6 +11,12 @@ pub struct Memory {
|
|||
index: RefCell<HashMap<String, i64>>,
|
||||
}
|
||||
|
||||
impl Default for Memory {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Memory {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue