Storable

Trait Storable 

Source
pub trait Storable<P>: Send + Sync
where P: HasDims + ?Sized,
{ // Required methods fn names(parent: &P) -> Vec<&str>; fn item_type(parent: &P, item: &str) -> ItemType; fn dims<'a>(parent: &'a P, item: &str) -> Vec<&'a str>; fn get_all<'a>(&'a mut self, parent: &'a P) -> Vec<(&'a str, Option<Value>)>; }

Required Methods§

Source

fn names(parent: &P) -> Vec<&str>

Source

fn item_type(parent: &P, item: &str) -> ItemType

Source

fn dims<'a>(parent: &'a P, item: &str) -> Vec<&'a str>

Source

fn get_all<'a>(&'a mut self, parent: &'a P) -> Vec<(&'a str, Option<Value>)>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<P> Storable<P> for ()
where P: HasDims,

Source§

fn names(_parent: &P) -> Vec<&str>

Source§

fn item_type(_parent: &P, _item: &str) -> ItemType

Source§

fn dims<'a>(_parent: &'a P, _item: &str) -> Vec<&'a str>

Source§

fn get_all(&mut self, _parent: &P) -> Vec<(&str, Option<Value>)>

Source§

impl<P> Storable<P> for Vec<f64>
where P: HasDims,

Source§

fn names(_parent: &P) -> Vec<&str>

Source§

fn item_type(_parent: &P, _item: &str) -> ItemType

Source§

fn dims<'a>(_parent: &'a P, _item: &str) -> Vec<&'a str>

Source§

fn get_all<'a>(&'a mut self, _parent: &'a P) -> Vec<(&'a str, Option<Value>)>

Implementors§