Trait ComputeSize
pub trait ComputeSize: ReadArgs {
// Required method
fn compute_size(args: &Self::Args) -> Result<usize, ReadError>;
}Expand description
Required Methods§
fn compute_size(args: &Self::Args) -> Result<usize, ReadError>
fn compute_size(args: &Self::Args) -> Result<usize, ReadError>
Compute the number of bytes required to represent this type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.