pub fn emit_hl_unmarshal_value(
s: &mut State<'_, '_>,
id: Ident,
vt: &Value<'_>,
) -> TokenStream
Expand description
Emit code to unmarshal a value into an inline-able value type
id
: an ident of a slice that the code will unmarshal from; also used as the beginning of any other identifiers that this code declares (if only we had hygiene in stable rust…)vt
: the value type that we are unmarshalling
The token stream produced will be an expression which typechecks
as a tuple whose first component is the Rust type (as defined by
the crate::rtypes
module) of the given value type and whose
second component is an integer. The second component represents
the number of bytes consumed from the id
slice while
unmarshalling.