pub struct SectionMut<'e, G: Group> { /* private fields */ }Expand description
The edit of one section of the named group G.
ConfigEdit::section_mut gives it.
Implementations§
Source§impl<G: Group> SectionMut<'_, G>
impl<G: Group> SectionMut<'_, G>
Sourcepub fn set<K: Key<G>>(&mut self, value: K::Value) -> Result<(), ConfigError>
pub fn set<K: Key<G>>(&mut self, value: K::Value) -> Result<(), ConfigError>
Sets the key K of the section to value.
If the section is absent, the call adds it at the end of the
document. The key takes its position as
ConfigEdit::set states.
§Errors
ConfigError::Core if the text of the value cannot be in a key
file, for example a text with a line break. The document then does not
change.
Auto Trait Implementations§
impl<'e, G> !UnwindSafe for SectionMut<'e, G>
impl<'e, G> Forget for SectionMut<'e, G>
impl<'e, G> Freeze for SectionMut<'e, G>
impl<'e, G> Move for SectionMut<'e, G>
impl<'e, G> RefUnwindSafe for SectionMut<'e, G>
impl<'e, G> Send for SectionMut<'e, G>
impl<'e, G> Sync for SectionMut<'e, G>
impl<'e, G> Unpin for SectionMut<'e, G>
impl<'e, G> UnsafeUnpin for SectionMut<'e, G>where
&'e mut KeyFile: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<fn() -> G>: UnsafeUnpin,
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