Skip to main content

encode

Function encode 

Source
pub fn encode<T: Serialize + ?Sized>(
    value: &T,
    encoding: Encoding,
    limits: Limits,
) -> Result<Vec<u8>, Error>
Expand description

Encode the fixture body with an empty root extension block.

ยงErrors

Returns the Wire encoding or budget refusal.