pub struct YoctoVar { /* private fields */ }
Implementations§
Source§impl YoctoVar
impl YoctoVar
pub fn valid_varable_name(name: &str) -> bool
pub fn valid_override(s: &str) -> bool
pub fn fix_str(s: &str) -> String
pub fn new(statement: Option<&str>) -> Result<Self>
pub fn new_default(name: &str, val: &str) -> Result<Self>
pub fn set_default_value(&mut self, val: &str)
pub fn get_default_value(&self) -> &str
pub fn update(&mut self, statement: &str, value: &str) -> Result<()>
pub fn key_name<'a>(name: &'a str) -> Result<String>
pub fn parse_name<'a>(name: &'a str) -> YoctoVarName
pub fn get_value(&self, vtype: YoctoVarType) -> Option<&str>
pub fn get_overrides(&self) -> Vec<&str>
pub fn get_flags(&self) -> Vec<&str>
pub fn set_value(&mut self, vtype: YoctoVarType, value: &str)
pub fn append(&mut self, vtype: YoctoVarType, value: &str)
pub fn prepend(&mut self, vtype: YoctoVarType, value: &str)
pub fn add_after(&mut self, vtype: YoctoVarType, value: &str)
pub fn add_before(&mut self, vtype: YoctoVarType, value: &str)
pub fn variables(value_str: &str) -> Vec<String>
pub fn value(&self, overrides: Option<&str>) -> &str
pub fn name(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for YoctoVar
impl RefUnwindSafe for YoctoVar
impl Send for YoctoVar
impl Sync for YoctoVar
impl Unpin for YoctoVar
impl UnwindSafe for YoctoVar
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