[][src]Struct pacman::ini::SectionSetter

pub struct SectionSetter<'a> { /* fields omitted */ }

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]

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]

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]

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]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.