[−][src]Struct pacman::ini::SectionSetter
A setter which could be used to set key-value pair in a specified section
Methods
impl<'a> SectionSetter<'a>
[src]
pub fn set<K, V>(&'a mut self, key: K, value: V) -> &'a mut SectionSetter<'a> where
K: Into<String>,
V: Into<String>,
[src]
K: Into<String>,
V: Into<String>,
Set key-value pair in this section
pub fn delete<K: ?Sized>(&'a mut self, key: &K) -> &'a mut SectionSetter<'a> where
String: Borrow<K>,
K: Hash + Eq,
[src]
String: Borrow<K>,
K: Hash + Eq,
Delete the entry in this section with key
pub fn get<K: ?Sized>(&'a mut self, key: &K) -> Option<Vec<&'a str>> where
String: Borrow<K>,
K: Hash + Eq,
[src]
String: Borrow<K>,
K: Hash + Eq,
Get the entry in this section with key
Auto Trait Implementations
impl<'a> Send for SectionSetter<'a>
impl<'a> Sync for SectionSetter<'a>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,