[][src]Struct tp_note::filter::ContextWrapper

pub struct ContextWrapper {
    ct: Context,
    pub fqpn: PathBuf,
}

Tiny wrapper around Tera-context with some additional information.

Fields

ct: Contextfqpn: PathBuf

Implementations

impl ContextWrapper[src]

A thin wrapper around tera::Context storing some additional information.

pub fn new() -> Self[src]

pub fn insert(&mut self, key: &str, val: &str)[src]

Function that forwards a kay-value to the encapsulated tera::Context::insert() function.

Methods from Deref<Target = Context>

pub fn get(&self, index: &str) -> Option<&Value>[src]

Returns the value at a given key index.

pub fn contains_key(&self, index: &str) -> bool[src]

Checks if a value exists at a specific index.

Trait Implementations

impl Debug for ContextWrapper[src]

impl Deref for ContextWrapper[src]

Auto-dereference for convenient access to tera::Content.

type Target = Context

The resulting type after dereferencing.

impl PartialEq<ContextWrapper> for ContextWrapper[src]

impl StructuralPartialEq for ContextWrapper[src]

Auto Trait Implementations

impl RefUnwindSafe for ContextWrapper

impl Send for ContextWrapper

impl Sync for ContextWrapper

impl Unpin for ContextWrapper

impl UnwindSafe for ContextWrapper

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,