pub struct DataStore { /* private fields */ }
Implementations§
Source§impl DataStore
impl DataStore
pub fn new() -> Self
pub fn expand_value( &self, value: &str, gstore: Option<&DataStore>, ) -> Result<String>
pub fn from_conf_str( &mut self, conf_str: &str, gstore: Option<&DataStore>, ) -> Result<()>
pub fn from_conf_file( &mut self, file: &str, gstore: Option<&DataStore>, ) -> Result<()>
pub fn value(&self, key: &str) -> Option<&YoctoVar>
pub fn data_store(&self) -> &HashMap<String, YoctoVar>
pub fn add(&mut self, yv: YoctoVar)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataStore
impl RefUnwindSafe for DataStore
impl Send for DataStore
impl Sync for DataStore
impl Unpin for DataStore
impl UnwindSafe for DataStore
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