Trait BorrowedValueExt

Source
pub trait BorrowedValueExt {
    // Required methods
    fn get_str(&self, key: &str) -> Option<&str>;
    fn get_u64(&self, key: &str) -> Option<u64>;
    fn get_f64(&self, key: &str) -> Option<f64>;
    fn get_bool(&self, key: &str) -> Option<bool>;
}
Expand description

Extension trait for zero-copy extraction from BorrowedValue

Required Methods§

Source

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

Get a string reference without allocation

Source

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

Get a number without allocation

Source

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

Get a number without allocation

Source

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

Get a boolean without allocation

Implementors§