pub struct ComputedArray<'a, T: ReadArgs> { /* private fields */ }
Expand description

An array whose items size is not known at compile time.

This requires the inner type to implement FontReadWithArgs as well as ComputeSize.

At runtime, Args are provided which will be used to compute the size of each item; this size is then used to compute the positions of the items within the underlying data, from which they will be read lazily.

Implementations§

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
read an item, using the provided args. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.