[−][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)
Missing
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]
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>
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,