pub struct Config(/* private fields */);
Implementations§
source§impl Config
impl Config
pub fn parse( path: impl AsRef<Path>, options: LexerOptions ) -> Result<Self, Box<dyn Error>>
pub fn set(&mut self, expression: Expression)
pub fn get(&self, key: impl AsRef<str>) -> Option<&Type>
pub fn get_integer(&self, key: impl AsRef<str>) -> Option<&i64>
pub fn get_float(&self, key: impl AsRef<str>) -> Option<&f64>
pub fn get_boolean(&self, key: impl AsRef<str>) -> Option<&bool>
pub fn get_string(&self, key: impl AsRef<str>) -> Option<&String>
pub fn get_array(&self, key: impl AsRef<str>) -> Option<&Vec<Type>>
pub fn get_dict(&self, key: impl AsRef<str>) -> Option<&Config>
Trait Implementations§
source§impl IntoIterator for Config
impl IntoIterator for Config
§type Item = Expression
type Item = Expression
The type of the elements being iterated over.
§type IntoIter = <HashSet<Expression> as IntoIterator>::IntoIter
type IntoIter = <HashSet<Expression> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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