[][src]Struct rusty_yaml::Yaml

pub struct Yaml { /* fields omitted */ }

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) -> Result<Self, ()>[src]

Trait Implementations

impl PartialEq<Yaml> for Yaml[src]

impl Clone for 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?

impl Debug for Yaml[src]

impl Display for Yaml[src]

Auto Trait Implementations

impl Send for Yaml

impl Sync for Yaml

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]