Trait read_fonts::ComputeSize

source ·
pub trait ComputeSize: ReadArgs {
    // Required method
    fn compute_size(args: &Self::Args) -> usize;
}
Expand description

A type that can compute its size at runtime, based on some input.

For types with a constant size, see FixedSize and for types which store their size inline, see VarSize.

Required Methods§

source

fn compute_size(args: &Self::Args) -> usize

Compute the number of bytes required to represent this type.

Object Safety§

This trait is not object safe.

Implementors§