Struct amq_protocol_codegen::UseBytesRefHelper
source · [−]pub struct UseBytesRefHelper;
Expand description
Helper to check whether a param is passed using an &u8 or its real type
Trait Implementations
sourceimpl HelperDef for UseBytesRefHelper
impl HelperDef for UseBytesRefHelper
sourcefn call_inner<'reg: 'rc, 'rc>(
&self,
h: &Helper<'reg, 'rc>,
_: &'reg Handlebars<'_>,
_: &'rc Context,
_: &mut RenderContext<'reg, 'rc>
) -> Result<ScopedJson<'reg, 'rc>, RenderError>
fn call_inner<'reg: 'rc, 'rc>(
&self,
h: &Helper<'reg, 'rc>,
_: &'reg Handlebars<'_>,
_: &'rc Context,
_: &mut RenderContext<'reg, 'rc>
) -> Result<ScopedJson<'reg, 'rc>, RenderError>
A simplified api to define helper Read more
Auto Trait Implementations
impl RefUnwindSafe for UseBytesRefHelper
impl Send for UseBytesRefHelper
impl Sync for UseBytesRefHelper
impl Unpin for UseBytesRefHelper
impl UnwindSafe for UseBytesRefHelper
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more