pub struct ConfigItem { /* private fields */ }
Expand description
A structure representing a config item.
It contains the config key, value and comments.
Implementations§
Source§impl ConfigItem
impl ConfigItem
Sourcepub fn item_name(&self) -> String
pub fn item_name(&self) -> String
Returns the unique name of the config item.
If the item is contained in the global table, it returns the iten key.
Otherwise, it returns a string with the format table.key
.
Sourcepub fn table_name(&self) -> &str
pub fn table_name(&self) -> &str
Returns the table name of the config item.
Sourcepub fn value(&self) -> &ConfigValue
pub fn value(&self) -> &ConfigValue
Returns the value of the config item.
Sourcepub fn value_mut(&mut self) -> &mut ConfigValue
pub fn value_mut(&mut self) -> &mut ConfigValue
Returns the mutable reference to the value of the config item.
Trait Implementations§
Source§impl Clone for ConfigItem
impl Clone for ConfigItem
Source§fn clone(&self) -> ConfigItem
fn clone(&self) -> ConfigItem
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 moreAuto Trait Implementations§
impl Freeze for ConfigItem
impl RefUnwindSafe for ConfigItem
impl Send for ConfigItem
impl Sync for ConfigItem
impl Unpin for ConfigItem
impl UnwindSafe for ConfigItem
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