toml_query::read

Trait TomlValueReadTypeExt

Source
pub trait TomlValueReadTypeExt<'doc>: TomlValueReadExt<'doc> {
    // Required methods
    fn read_string(&'doc self, query: &str) -> Result<Option<String>>;
    fn read_int(&'doc self, query: &str) -> Result<Option<i64>>;
    fn read_float(&'doc self, query: &str) -> Result<Option<f64>>;
    fn read_bool(&'doc self, query: &str) -> Result<Option<bool>>;
}

Required Methods§

Source

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

Source

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

Source

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

Source

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

Implementors§

Source§

impl<'doc, T> TomlValueReadTypeExt<'doc> for T
where T: TomlValueReadExt<'doc>,