[−][src]Struct ini::Properties
Properties type (key-value pairs)
Implementations
impl Properties
[src]
pub fn new() -> Properties
[src]
Create an instance
pub fn len(&self) -> usize
[src]
Get the number of the properties
pub fn is_empty(&self) -> bool
[src]
Check if properties has 0 elements
pub fn iter(&self) -> impl Iterator<Item = (&str, &str)>
[src]
Get an iterator of the properties
pub fn contains_key<S: AsRef<str>>(&self, s: S) -> bool
[src]
Return true if property exist
pub fn insert<K, V>(&mut self, k: K, v: V) where
K: Into<String>,
V: Into<String>,
[src]
K: Into<String>,
V: Into<String>,
Insert (key, value) pair by replace
pub fn append<K, V>(&mut self, k: K, v: V) where
K: Into<String>,
V: Into<String>,
[src]
K: Into<String>,
V: Into<String>,
Append key with (key, value) pair
pub fn get<S: AsRef<str>>(&self, s: S) -> Option<&str>
[src]
Get the first value associate with the key
pub fn get_all<S: AsRef<str>>(&self, s: S) -> impl Iterator<Item = &str>
[src]
Get all values associate with the key
pub fn remove<S: AsRef<str>>(&mut self, s: S) -> Option<String>
[src]
Remove the property with the first value of the key
pub fn remove_all<'a, S: AsRef<str>>(
&'a mut self,
s: S
) -> impl Iterator<Item = String> + 'a
[src]
&'a mut self,
s: S
) -> impl Iterator<Item = String> + 'a
Remove the property with all values with the same key
Trait Implementations
impl Clone for Properties
[src]
pub fn clone(&self) -> Properties
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Properties
[src]
impl Default for Properties
[src]
pub fn default() -> Properties
[src]
impl<S: AsRef<str>> Index<S> for Properties
[src]
impl PartialEq<Properties> for Properties
[src]
pub fn eq(&self, other: &Properties) -> bool
[src]
pub fn ne(&self, other: &Properties) -> bool
[src]
impl StructuralPartialEq for Properties
[src]
Auto Trait Implementations
impl RefUnwindSafe for Properties
[src]
impl Send for Properties
[src]
impl Sync for Properties
[src]
impl Unpin for Properties
[src]
impl UnwindSafe for Properties
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,