pub struct ComputedArray<'a, T: ReadArgs> {
item_len: usize,
len: usize,
data: FontData<'a>,
args: T::Args,
}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.
Fields§
§item_len: usize§len: usize§data: FontData<'a>§args: T::ArgsImplementations§
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 duplicate 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