[−][src]Enum handlebars::ScopedJson
A JSON wrapper designed for handlebars internal use case
- Constant: the JSON value hardcoded into template
- Context: the JSON value referenced in your provided data context
- Derived: the owned JSON value computed during rendering process
Variants
Constant(&'reg Json)Derived(Json)Context(&'rc Json)Methods
impl<'reg: 'rc, 'rc> ScopedJson<'reg, 'rc>[src]
pub fn as_json(&self) -> &Json[src]
get the JSON reference
pub fn render(&self) -> String[src]
pub fn is_missing(&self) -> bool[src]
pub fn into_derived(self) -> ScopedJson<'reg, 'rc>[src]
pub fn block_context_path(&self) -> Option<&String>[src]
Trait Implementations
impl<'reg: 'rc, 'rc> From<Value> for ScopedJson<'reg, 'rc>[src]
fn from(v: Json) -> ScopedJson<'reg, 'rc>[src]
impl<'reg: 'rc, 'rc> Debug for ScopedJson<'reg, 'rc>[src]
Auto Trait Implementations
impl<'reg, 'rc> Send for ScopedJson<'reg, 'rc>
impl<'reg, 'rc> Sync for ScopedJson<'reg, 'rc>
impl<'reg, 'rc> Unpin for ScopedJson<'reg, 'rc>
impl<'reg, 'rc> UnwindSafe for ScopedJson<'reg, 'rc>
impl<'reg, 'rc> RefUnwindSafe for ScopedJson<'reg, 'rc>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,