Skip to main content

append_ground_term_bytes

Function append_ground_term_bytes 

Source
pub fn append_ground_term_bytes(
    output: &mut Vec<u8>,
    term: &Term,
    scalar_type: ScalarType,
) -> Result<(), GroundTermEncodingError>
Expand description

Append the little-endian physical representation of a typed ground term.

Existing bytes in output are preserved. If encoding fails, output is left unchanged and the returned structured error identifies the rejected value or term form.