[−][src]Struct rusty_yaml::Yaml
Yaml struct definition
Methods
impl Yaml
[src]
pub fn get_name(&self) -> String
[src]
Get the name of the current section Requires immutable access
pub fn get_section<S: Display>(&self, index: S) -> Result<Self, String>
[src]
Get a section of the current yaml Requires immutable access
pub fn get_section_names(&self) -> Result<Vec<String>, String>
[src]
Get the names of all the sections in the current section Requires immutable access
pub fn has_section<S: Display>(&self, index: S) -> bool
[src]
Does this yaml section have a section with this name? Requires immutable access
pub fn nth<N: Into<i32>>(&self, n: N) -> Self
[src]
Trait Implementations
impl PartialEq<Yaml> for Yaml
[src]
impl Clone for Yaml
[src]
fn clone(&self) -> Yaml
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<String> for Yaml
[src]
impl<'_> From<&'_ str> for Yaml
[src]
impl From<Yaml> for Yaml
[src]
impl From<Yaml> for String
[src]
impl IntoIterator for Yaml
[src]
Converts a yaml object into an iterator Iterates over members of the section
type Item = Self
The type of the elements being iterated over.
type IntoIter = IntoIter<Self::Item>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl Debug for Yaml
[src]
impl Display for Yaml
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,