pub struct SectionSetter<'a> { /* private fields */ }
Expand description
A setter which could be used to set key-value pair in a specified section
Implementations§
Source§impl<'a> SectionSetter<'a>
impl<'a> SectionSetter<'a>
Sourcepub fn set<'b, K, V>(
&'b mut self,
key: K,
value: V,
) -> &'b mut SectionSetter<'a>
pub fn set<'b, K, V>( &'b mut self, key: K, value: V, ) -> &'b mut SectionSetter<'a>
Set (replace) key-value pair in this section (all with the same name)
Sourcepub fn add<'b, K, V>(
&'b mut self,
key: K,
value: V,
) -> &'b mut SectionSetter<'a>
pub fn add<'b, K, V>( &'b mut self, key: K, value: V, ) -> &'b mut SectionSetter<'a>
Add (append) key-value pair in this section
Sourcepub fn delete<'b, K>(&'b mut self, key: &K) -> &'b mut SectionSetter<'a>
pub fn delete<'b, K>(&'b mut self, key: &K) -> &'b mut SectionSetter<'a>
Delete the first entry in this section with key
Auto Trait Implementations§
impl<'a> Freeze for SectionSetter<'a>
impl<'a> RefUnwindSafe for SectionSetter<'a>
impl<'a> Send for SectionSetter<'a>
impl<'a> Sync for SectionSetter<'a>
impl<'a> Unpin for SectionSetter<'a>
impl<'a> !UnwindSafe for SectionSetter<'a>
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