toml_query::read

Trait TomlValueReadExt

Source
pub trait TomlValueReadExt<'doc> {
    // Required methods
    fn read_with_seperator(
        &'doc self,
        query: &str,
        sep: char,
    ) -> Result<Option<&'doc Value>>;
    fn read_mut_with_seperator(
        &'doc mut self,
        query: &str,
        sep: char,
    ) -> Result<Option<&'doc mut Value>>;

    // Provided methods
    fn read(&'doc self, query: &str) -> Result<Option<&'doc Value>> { ... }
    fn read_mut(&'doc mut self, query: &str) -> Result<Option<&'doc mut Value>> { ... }
}

Required Methods§

Source

fn read_with_seperator( &'doc self, query: &str, sep: char, ) -> Result<Option<&'doc Value>>

Extension function for reading a value from the current toml::Value document using a custom seperator

Source

fn read_mut_with_seperator( &'doc mut self, query: &str, sep: char, ) -> Result<Option<&'doc mut Value>>

Extension function for reading a value from the current toml::Value document mutably using a custom seperator

Provided Methods§

Source

fn read(&'doc self, query: &str) -> Result<Option<&'doc Value>>

Extension function for reading a value from the current toml::Value document

Source

fn read_mut(&'doc mut self, query: &str) -> Result<Option<&'doc mut Value>>

Extension function for reading a value from the current toml::Value document mutably

Implementations on Foreign Types§

Source§

impl<'doc> TomlValueReadExt<'doc> for Value

Source§

fn read_with_seperator( &'doc self, query: &str, sep: char, ) -> Result<Option<&'doc Value>>

Source§

fn read_mut_with_seperator( &'doc mut self, query: &str, sep: char, ) -> Result<Option<&'doc mut Value>>

Implementors§