pub fn del(&mut self, key: A) -> ExecResult {
        match self.storage.remove(&key) {
            Some(val) => {
                println!("Deleted: Key -> Value mapping.");
                ExecResult::Success
            }
            None => {
                eprintln!("Error: Can't remove, as no value associated with key.");
                ExecResult::Failed
            }
        }
    }
/// Operates HashMap::remove() and fails if the key-value pair
/// doesn't exist, else deletes it and returns success.
Operates HashMap::remove() and fails if the key-value pair
doesn't exist, else deletes it and returns success.
Operates HashMap :: remove () and fails if the key - value pair doesn ' t exist else deletes it and returns success .
pub fn del(&mut self, key: A) -> ExecResult {
        match self.storage.remove(&key) {
            Some(val) => {
                println!("Deleted: Key -> Value mapping.");
                ExecResult::Success
            }
            None => {
                eprintln!("Error: Can't remove, as no value associated with key.");
                ExecResult::Failed
            }
        }
    }
pub fn del ( & mut self , key : A ) -> ExecResult { match self . storage . remove ( & key ) { Some ( val ) => { println ! ( " " ) ; ExecResult :: Success } None => { eprintln ! ( " " ) ; ExecResult :: Failed } } }
Operates HashMap::remove() and fails if the key-value pair
doesn't exist, else deletes it and returns success.
Operates HashMap :: remove () and fails if the key - value pair doesn ' t exist else deletes it and returns success .
&mut self
key
A
&mut self
key
A