[][src]Trait templar::Context

pub trait Context: Sized {
    pub fn merge<T: Into<InnerData>>(&self, doc: T) -> Result<()> { ... }
pub fn merge_path<T>(&self, path: &[&InnerData], doc: T) -> Result<()>
    where
        InnerData: From<T>
, { ... }
pub fn set<T: Into<ContextMapValue>>(&self, doc: T) -> Result<()> { ... }
pub fn create_scope(&self) -> ScopedContext<'_> { ... }
pub fn set_path<T: Into<ContextMapValue>>(
        &self,
        path: &[&InnerData],
        doc: T
    ) -> Result<()> { ... }
pub fn get(&self) -> Data { ... }
pub fn get_path(&self, path: &[&InnerData]) -> Data { ... } }

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]

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]

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

Loading content...

Implementors

impl Context for StandardContext[src]

Loading content...