Skip to main content

Accessor

Trait Accessor 

Source
pub trait Accessor {
    // Required methods
    fn get_string(&self, key: &str) -> Option<&str>;
    fn get_int64(&self, key: &str) -> Option<i64>;
    fn get_float64(&self, key: &str) -> Option<f64>;
}
Expand description

An abstract view over a bag of typed attributes.

Required Methods§

Source

fn get_string(&self, key: &str) -> Option<&str>

Returns a string attribute, without converting other types.

Source

fn get_int64(&self, key: &str) -> Option<i64>

Returns an integer attribute, without parsing strings.

Source

fn get_float64(&self, key: &str) -> Option<f64>

Returns a floating-point attribute, without parsing strings.

Implementors§