[−][src]Trait templar::Context
The primary context trait
Provided methods
pub fn merge<T: Into<InnerData>>(&self, doc: T) -> Result<()>
[src]
Merge the data into the root context
pub fn merge_path<T>(&self, path: &[&InnerData], doc: T) -> Result<()> where
InnerData: From<T>,
[src]
InnerData: From<T>,
Merge the data into the context at the specified path
pub fn set<T: Into<ContextMapValue>>(&self, doc: T) -> Result<()>
[src]
Set the root context value
pub fn create_scope(&self) -> ScopedContext<'_>
[src]
Enter a new scope
pub fn set_path<T: Into<ContextMapValue>>(
&self,
path: &[&InnerData],
doc: T
) -> Result<()>
[src]
&self,
path: &[&InnerData],
doc: T
) -> Result<()>
Set the value at the specified path
pub fn get(&self) -> Data
[src]
Get the root context value
pub fn get_path(&self, path: &[&InnerData]) -> Data
[src]
Get the value at the path