pub struct Properties { /* private fields */ }Implementations§
Source§impl Properties
impl Properties
pub fn new() -> Self
pub fn get(&self, key: &str) -> Option<&PropertyDocument>
pub fn get_mut(&mut self, key: &str) -> Option<&mut PropertyDocument>
pub fn get_value<T: FromStr>(&self, key: &str) -> Result<Option<T>, T::Err>
pub fn iter(&self) -> impl Iterator<Item = (&String, &PropertyDocument)>
pub fn into_iter(self) -> impl Iterator<Item = (String, PropertyDocument)>
pub fn set( &mut self, key: PropertyKey, value: PropertyValue, ) -> Option<PropertyDocument>
pub fn remove(&mut self, key: &str) -> Option<PropertyDocument>
pub fn remove_at(&mut self, idx: usize) -> Option<(String, PropertyDocument)>
pub fn replace_at( &mut self, idx: usize, key: PropertyKey, value: PropertyDocument, ) -> Option<(String, PropertyDocument)>
pub fn contains_key(&self, key: &str) -> bool
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for Properties
impl Clone for Properties
Source§fn clone(&self) -> Properties
fn clone(&self) -> Properties
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for Properties
impl Display for Properties
Source§impl From<Properties> for EditableDocument<Properties>
impl From<Properties> for EditableDocument<Properties>
Source§fn from(properties: Properties) -> Self
fn from(properties: Properties) -> Self
Converts to this type from the input type.
Source§impl From<ReadonlyProperties> for Properties
impl From<ReadonlyProperties> for Properties
Source§fn from(parsed_properties: ReadonlyProperties) -> Self
fn from(parsed_properties: ReadonlyProperties) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Properties
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more