Struct handlebars_switch::SwitchHelper
source · pub struct SwitchHelper;
Trait Implementations§
source§impl Clone for SwitchHelper
impl Clone for SwitchHelper
source§fn clone(&self) -> SwitchHelper
fn clone(&self) -> SwitchHelper
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl HelperDef for SwitchHelper
impl HelperDef for SwitchHelper
source§fn call<'reg: 'rc, 'rc>(
&self,
h: &Helper<'rc>,
r: &'reg Handlebars<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>,
out: &mut dyn Output
) -> HelperResult
fn call<'reg: 'rc, 'rc>( &self, h: &Helper<'rc>, r: &'reg Handlebars<'reg>, ctx: &'rc Context, rc: &mut RenderContext<'reg, 'rc>, out: &mut dyn Output ) -> HelperResult
A complex version of helper interface. Read more
source§fn call_inner<'reg, 'rc>(
&self,
_: &Helper<'rc>,
_: &'reg Registry<'reg>,
_: &'rc Context,
_: &mut RenderContext<'reg, 'rc>
) -> Result<ScopedJson<'rc>, RenderError>where
'reg: 'rc,
fn call_inner<'reg, 'rc>(
&self,
_: &Helper<'rc>,
_: &'reg Registry<'reg>,
_: &'rc Context,
_: &mut RenderContext<'reg, 'rc>
) -> Result<ScopedJson<'rc>, RenderError>where
'reg: 'rc,
A simplified api to define helper Read more
impl Copy for SwitchHelper
Auto Trait Implementations§
impl RefUnwindSafe for SwitchHelper
impl Send for SwitchHelper
impl Sync for SwitchHelper
impl Unpin for SwitchHelper
impl UnwindSafe for SwitchHelper
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more