Struct read_fonts::array::ComputedArray
source · 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§
source§impl<'a, T: ComputeSize> ComputedArray<'a, T>
impl<'a, T: ComputeSize> ComputedArray<'a, T>
Trait Implementations§
source§impl<'a, T: Clone + ReadArgs> Clone for ComputedArray<'a, T>
impl<'a, T: Clone + ReadArgs> Clone for ComputedArray<'a, T>
source§fn clone(&self) -> ComputedArray<'a, T>
fn clone(&self) -> ComputedArray<'a, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: ReadArgs> Debug for ComputedArray<'_, T>
impl<T: ReadArgs> Debug for ComputedArray<'_, T>
source§impl<'a, T> FontReadWithArgs<'a> for ComputedArray<'a, T>
impl<'a, T> FontReadWithArgs<'a> for ComputedArray<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ComputedArray<'a, T>
impl<'a, T> RefUnwindSafe for ComputedArray<'a, T>
impl<'a, T> Send for ComputedArray<'a, T>
impl<'a, T> Sync for ComputedArray<'a, T>
impl<'a, T> Unpin for ComputedArray<'a, T>
impl<'a, T> UnwindSafe for ComputedArray<'a, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more