pub struct Yaml { /* private fields */ }Expand description
Yaml struct definition
Implementations§
Source§impl Yaml
impl Yaml
Sourcepub fn get_section<S: Display>(&self, index: S) -> Result<Self, String>
pub fn get_section<S: Display>(&self, index: S) -> Result<Self, String>
Get a section of the current yaml Requires immutable access
Sourcepub fn get_section_names(&self) -> Result<Vec<String>, String>
pub fn get_section_names(&self) -> Result<Vec<String>, String>
Get the names of all the sections in the current section Requires immutable access
Sourcepub fn has_section<S: Display>(&self, index: S) -> bool
pub fn has_section<S: Display>(&self, index: S) -> bool
Does this yaml section have a section with this name? Requires immutable access
pub fn nth<N: Into<i32>>(&self, n: N) -> Self
Trait Implementations§
Source§impl IntoIterator for Yaml
Converts a yaml object into an iterator
Iterates over members of the section
impl IntoIterator for Yaml
Converts a yaml object into an iterator Iterates over members of the section
impl StructuralPartialEq for Yaml
Auto Trait Implementations§
impl Freeze for Yaml
impl RefUnwindSafe for Yaml
impl Send for Yaml
impl Sync for Yaml
impl Unpin for Yaml
impl UnwindSafe for Yaml
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