pub trait Context: Sized {
// Provided methods
fn merge<T: Into<InnerData>>(&self, doc: T) -> Result<()> { ... }
fn merge_path<T>(&self, path: &[&InnerData], doc: T) -> Result<()>
where InnerData: From<T> { ... }
fn set<T: Into<ContextMapValue>>(&self, doc: T) -> Result<()> { ... }
fn create_scope(&self) -> ScopedContext<'_> { ... }
fn set_path<T: Into<ContextMapValue>>(
&self,
path: &[&InnerData],
doc: T,
) -> Result<()> { ... }
fn get(&self) -> Data { ... }
fn get_path(&self, path: &[&InnerData]) -> Data { ... }
}Expand description
The primary context trait
Provided Methods§
Sourcefn merge_path<T>(&self, path: &[&InnerData], doc: T) -> Result<()>
fn merge_path<T>(&self, path: &[&InnerData], doc: T) -> Result<()>
Merge the data into the context at the specified path
Sourcefn create_scope(&self) -> ScopedContext<'_>
fn create_scope(&self) -> ScopedContext<'_>
Enter a new scope
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.