Enum handlebars::ScopedJson [−][src]
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)Implementations
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 context_path(&self) -> Option<&Vec<String>>[src]
Trait Implementations
impl<'reg: 'rc, 'rc> Debug for ScopedJson<'reg, 'rc>[src]
impl<'reg: 'rc, 'rc> From<Value> for ScopedJson<'reg, 'rc>[src]
fn from(v: Json) -> ScopedJson<'reg, 'rc>[src]
Auto Trait Implementations
impl<'reg, 'rc> RefUnwindSafe for ScopedJson<'reg, 'rc>
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>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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.
pub 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>,