pub struct SystemdIni(/* private fields */);
Implementations§
Source§impl SystemdIni
impl SystemdIni
pub fn get_bool(&self, section: &str, key: &str) -> Option<bool>
pub fn get_unit_switch_method(&self) -> Option<UnitSwitchMethod>
pub fn remove(&mut self, section: &str, key: &str)
Sourcepub fn extend(self: &mut SystemdIni, other: SystemdIni)
pub fn extend(self: &mut SystemdIni, other: SystemdIni)
Merges two INI files with overlapping fields taken from other
.
The b
is consumed in the process.
Sourcepub fn eq_excluding(
&self,
other: &SystemdIni,
excluded: &[(&str, &str)],
) -> bool
pub fn eq_excluding( &self, other: &SystemdIni, excluded: &[(&str, &str)], ) -> bool
Compares self
with other
for equality but excluding the given
options.
Trait Implementations§
Source§impl Clone for SystemdIni
impl Clone for SystemdIni
Source§fn clone(&self) -> SystemdIni
fn clone(&self) -> SystemdIni
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SystemdIni
impl Debug for SystemdIni
Source§impl PartialEq for SystemdIni
impl PartialEq for SystemdIni
impl Eq for SystemdIni
impl StructuralPartialEq for SystemdIni
Auto Trait Implementations§
impl Freeze for SystemdIni
impl RefUnwindSafe for SystemdIni
impl Send for SystemdIni
impl Sync for SystemdIni
impl Unpin for SystemdIni
impl UnwindSafe for SystemdIni
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