pub fn push(&mut self, mapping: Map<K, V>) {
        match self {
            Self::Simple(existing_mapping) => {
                *self = if let Some(existing_mapping) = existing_mapping.take() {
                    Self::List(vec![existing_mapping, mapping])
                } else {
                    Self::Simple(Some(mapping))
                };
            }
            Self::List(vec) => vec.push(mapping),
        }
    }
/// Appends `mapping` to the end of this collection.
Appends `mapping` to the end of this collection.
Appends ` mapping ` to the end of this collection .
pub fn push(&mut self, mapping: Map<K, V>) {
        match self {
            Self::Simple(existing_mapping) => {
                *self = if let Some(existing_mapping) = existing_mapping.take() {
                    Self::List(vec![existing_mapping, mapping])
                } else {
                    Self::Simple(Some(mapping))
                };
            }
            Self::List(vec) => vec.push(mapping),
        }
    }
pub fn push ( & mut self , mapping : Map < K , V > ) { match self { Self :: Simple ( existing_mapping ) => { * self = if let Some ( existing_mapping ) = existing_mapping . take ( ) { Self :: List ( vec ! [ existing_mapping mapping ] ) } else { Self :: Simple ( Some ( mapping ) ) } ; } Self :: List ( vec ) => vec . push ( mapping ) , } }
Appends `mapping` to the end of this collection.
Appends ` mapping ` to the end of this collection .
&mut self
mapping
Map<K, V>
&mut self
mapping
Map<K, V>