pub fn values_of(&self, key: &K) -> &[V] {
        let first = self.find_first_position(key).ok();
        match first {
            Some(first) => {
                let last = self.find_last_position(key).unwrap();
                &self.values[first..last]
            }
            None => &self.values[0..0],
        }
    }
/// Returns the values of a specific key as a slice
Returns the values of a specific key as a slice
Returns the values of a specific key as a slice
pub fn values_of(&self, key: &K) -> &[V] {
        let first = self.find_first_position(key).ok();
        match first {
            Some(first) => {
                let last = self.find_last_position(key).unwrap();
                &self.values[first..last]
            }
            None => &self.values[0..0],
        }
    }
pub fn values_of ( & self , key : & K ) -> & [ V ] { let first = self . find_first_position ( key ) . ok ( ) ; match first { Some ( first ) => { let last = self . find_last_position ( key ) . unwrap ( ) ; & self . values [ first .. last ] } None => & self . values [ 0 .. 0 ] , } }
Returns the values of a specific key as a slice
Returns the values of a specific key as a slice
&self
key
&K
&self
key
&K