Struct ttf_parser::parser::LazyOffsetArray16
source · pub struct LazyOffsetArray16<'a, T: FromSlice<'a>> {
data: &'a [u8],
offsets: LazyArray16<'a, Option<Offset16>>,
data_type: PhantomData<T>,
}
Expand description
A LazyArray16
-like container, but data is accessed by offsets.
Unlike LazyArray16
, internal storage is not continuous.
Multiple offsets can point to the same data.
Fields§
§data: &'a [u8]
§offsets: LazyArray16<'a, Option<Offset16>>
§data_type: PhantomData<T>
Implementations§
source§impl<'a, T: FromSlice<'a>> LazyOffsetArray16<'a, T>
impl<'a, T: FromSlice<'a>> LazyOffsetArray16<'a, T>
Trait Implementations§
source§impl<'a, T: Clone + FromSlice<'a>> Clone for LazyOffsetArray16<'a, T>
impl<'a, T: Clone + FromSlice<'a>> Clone for LazyOffsetArray16<'a, T>
source§fn clone(&self) -> LazyOffsetArray16<'a, T>
fn clone(&self) -> LazyOffsetArray16<'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<'a, T: FromSlice<'a>> IntoIterator for LazyOffsetArray16<'a, T>
impl<'a, T: FromSlice<'a>> IntoIterator for LazyOffsetArray16<'a, T>
impl<'a, T: Copy + FromSlice<'a>> Copy for LazyOffsetArray16<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for LazyOffsetArray16<'a, T>
impl<'a, T> RefUnwindSafe for LazyOffsetArray16<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for LazyOffsetArray16<'a, T>where
T: Send,
impl<'a, T> Sync for LazyOffsetArray16<'a, T>where
T: Sync,
impl<'a, T> Unpin for LazyOffsetArray16<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for LazyOffsetArray16<'a, T>where
T: UnwindSafe,
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