Skip to main content

Module array

Module array 

Source
Expand description

Custom array types

Macrosยง

impl_font_read_at ๐Ÿ”’
Implements FontReadAt for a type that is read through FontRead, by slicing the enclosing data to the item first.

Structsยง

ComputedArray
An array whose items size is not known at compile time.
VarLenArray
An array of items of non-uniform length.

Functionsยง

get_pair ๐Ÿ”’
Helper to retrieve a pair of items from a slice, returning an error if the second index overflows or if either index is out of bounds.
representable_len ๐Ÿ”’
The number of items whose offsets are representable.