Struct systemd_parser::items::SystemdUnit
[−]
[src]
pub struct SystemdUnit { /* fields omitted */ }
Methods
impl SystemdUnit
[src]
fn new(unit_items: &Vec<SystemdItem>) -> Result<SystemdUnit, ()>
fn lookup_by_key(&self, key: &str) -> Option<&DirectiveEntry>
fn lookup_by_category(&self, category: &str) -> Vec<&DirectiveEntry>
fn has_key(&self, key: &str) -> bool
fn has_category(&self, category: &str) -> bool
Trait Implementations
impl PartialEq for SystemdUnit
[src]
fn eq(&self, __arg_0: &SystemdUnit) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SystemdUnit) -> bool
This method tests for !=
.
impl Eq for SystemdUnit
[src]
impl Clone for SystemdUnit
[src]
fn clone(&self) -> SystemdUnit
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more