pub struct Config { /* private fields */ }Implementations§
Source§impl Config
impl Config
pub fn from_source_file(source_file: SourceFile) -> (Self, Vec<ConfigError>)
pub fn from_kv_entries<'a>( items: impl IntoIterator<Item = (&'a str, Value<'a>)>, ) -> Self
Sourcepub fn query<'a>(&'a self, key: &str) -> impl Iterator<Item = Value<'a>> + 'a
pub fn query<'a>(&'a self, key: &str) -> impl Iterator<Item = Value<'a>> + 'a
Return values that exactly match key in insertion order (grouped by first occurrence).
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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