[][src]Trait toml_query::value::TomlValueExt

pub trait TomlValueExt<'doc>: TomlValueReadExt<'doc> + TomlValueSetExt + TomlValueDeleteExt + TomlValueInsertExt {
    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>> { ... }
fn read(&'doc self, query: &str) -> Result<Option<&'doc Value>> { ... }
fn read_mut(&'doc mut self, query: &str) -> Result<Option<&'doc mut Value>> { ... }
fn set_with_seperator(
        &mut self,
        query: &str,
        sep: char,
        value: Value
    ) -> Result<Option<Value>> { ... }
fn set(&mut self, query: &str, value: Value) -> Result<Option<Value>> { ... }
fn delete_with_seperator(
        &mut self,
        query: &str,
        sep: char
    ) -> Result<Option<Value>> { ... }
fn delete(&mut self, query: &str) -> Result<Option<Value>> { ... }
fn insert_with_seperator(
        &mut self,
        query: &str,
        sep: char,
        value: Value
    ) -> Result<Option<Value>> { ... }
fn insert(&mut self, query: &str, value: Value) -> Result<Option<Value>> { ... } }

Conveniance trait over

  • TomlValueReadExt
  • TomlValueSetExt

for ease of use.

The very same goal can be achieved by importing each trait seperately.

Provided methods

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

See documentation of TomlValueReadExt

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

See documentation of TomlValueReadExt

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

See documentation of TomlValueReadExt

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

See documentation of TomlValueReadExt

fn set_with_seperator(
    &mut self,
    query: &str,
    sep: char,
    value: Value
) -> Result<Option<Value>>

See documentation of TomlValueSetExt

fn set(&mut self, query: &str, value: Value) -> Result<Option<Value>>

See documentation of TomlValueSetExt

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

See documentation of TomlValueDeleteExt

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

See documentation of TomlValueDeleteExt

fn insert_with_seperator(
    &mut self,
    query: &str,
    sep: char,
    value: Value
) -> Result<Option<Value>>

See documentation of TomlValueInsertExt

fn insert(&mut self, query: &str, value: Value) -> Result<Option<Value>>

See documentation of TomlValueInsertExt

Loading content...

Implementations on Foreign Types

impl<'doc> TomlValueExt<'doc> for Value[src]

Loading content...

Implementors

Loading content...