pub trait PathAccess {
type Value;
// Required methods
fn get_path<'a>(&'a self, path: &str) -> Option<&'a Self::Value>;
fn set_path(&mut self, path: &str, value: Self::Value) -> bool;
// Provided method
fn has_path(&self, path: &str) -> bool { ... }
}Expand description
Trait for types that support path-based access