Trait ebml_iterable::tools::Vint
source · pub trait Vint: Into<u64> + Copy {
// Provided methods
fn as_vint(self) -> Result<Vec<u8>, ToolError> { ... }
fn as_vint_with_length<const LENGTH: usize>(
&self
) -> Result<[u8; LENGTH], ToolError> { ... }
}
Expand description
Trait to enable easy serialization to a vint.
This is only available for types that can be cast as u64
.
Provided Methods§
Object Safety§
This trait is not object safe.