fn remove_property(&mut self, key: &str) -> Option<Property> {
        if let Some(properties) = &mut self.properties {
            if let Some(i) = properties.iter().position(|prop| prop.key == key) {
                return Some(properties.remove(i));
            }
        }
        None
    }
/// Removes the property with the given key from the given Object. Returns the removed value if it
/// existed.
Removes the property with the given key from the given Object. Returns the removed value if it
existed.
Removes the property with the given key from the given Object . Returns the removed value if it existed .
fn remove_property(&mut self, key: &str) -> Option<Property> {
        if let Some(properties) = &mut self.properties {
            if let Some(i) = properties.iter().position(|prop| prop.key == key) {
                return Some(properties.remove(i));
            }
        }
        None
    }
fn remove_property ( & mut self , key : & str ) -> Option < Property > { if let Some ( properties ) = & mut self . properties { if let Some ( i ) = properties . iter ( ) . position ( | prop | prop . key == key ) { return Some ( properties . remove ( i ) ) ; } } None }
Removes the property with the given key from the given Object.
Removes the property with the given key from the given Object .
&mut self
key
&str
&mut self
key
&str