Skip to main content

write_txi_to_vec_with_options

Function write_txi_to_vec_with_options 

Source
pub fn write_txi_to_vec_with_options(
    txi: &Txi,
    options: TxiWriteOptions,
) -> Result<Vec<u8>, TxiError>
Expand description

Serializes TXI data to bytes with explicit serialization options.

ยงErrors

TxiError::TextEncoding on the terms write_txi_with_options gives. The Vec target has no I/O to fail at.