Enum rocket_dyn_templates::handlebars::ScopedJson [−][src]
pub enum ScopedJson<'reg, 'rc> where
'reg: 'rc, { Constant(&'reg Value), Derived(Value), Context(&'rc Value, Vec<String, Global>), Missing, }
Expand description
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 Value)
Derived(Value)
Implementations
Trait Implementations
Performs the conversion.
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn vzip(self) -> V