emit_hl_marshal_value

Function emit_hl_marshal_value 

Source
pub fn emit_hl_marshal_value(
    s: &mut State<'_, '_>,
    id: Ident,
    vt: &Value<'_>,
) -> TokenStream
Expand description

Emit code to marshal a value from an inline-able value type

  • id: an ident of a Rust value of the Rust type (as defined by the crate::rtypes module) of the given value type that is being marshaled from
  • vt: the value type that we are marshaling

The token stream produced will be an expression which typechecks as Vec<u8>.