Trait encoding::Encode
zaun_community_protocol::encoding::Encode · Trait
pub trait Encode { … }A type with a canonical encoding (fixed-size or self-limiting).
Methods
Section titled “Methods”encode
Section titled “encode”fn encode(&self, w: &mut Writer) -> Result<(), EncodeError>;Appends the canonical encoding.
Errors
Section titled “Errors”EncodeError when a field breaks its limit or rule.