Struct owned_ttf_parser::LazyArray16
source · pub struct LazyArray16<'a, T> {
data: &'a [u8],
data_type: PhantomData<T>,
}
Expand description
A slice-like container that converts internal binary data only on access.
Array values are stored in a continuous data chunk.
Fields§
§data: &'a [u8]
§data_type: PhantomData<T>
Implementations§
source§impl LazyArray16<'_, RangeRecord>
impl LazyArray16<'_, RangeRecord>
sourcepub fn range(&self, glyph: GlyphId) -> Option<RangeRecord>
pub fn range(&self, glyph: GlyphId) -> Option<RangeRecord>
Returns a RangeRecord
for a glyph.
source§impl<'a, T> LazyArray16<'a, T>where
T: FromData,
impl<'a, T> LazyArray16<'a, T>where
T: FromData,
sourcepub fn new(data: &'a [u8]) -> LazyArray16<'a, T>
pub fn new(data: &'a [u8]) -> LazyArray16<'a, T>
Creates a new LazyArray
.
Trait Implementations§
source§impl<'a, T> Clone for LazyArray16<'a, T>where
T: Clone,
impl<'a, T> Clone for LazyArray16<'a, T>where
T: Clone,
source§fn clone(&self) -> LazyArray16<'a, T>
fn clone(&self) -> LazyArray16<'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> Debug for LazyArray16<'a, T>
impl<'a, T> Debug for LazyArray16<'a, T>
source§impl<T> Default for LazyArray16<'_, T>
impl<T> Default for LazyArray16<'_, T>
source§fn default() -> LazyArray16<'_, T>
fn default() -> LazyArray16<'_, T>
Returns the “default value” for a type. Read more
source§impl<'a, T> IntoIterator for LazyArray16<'a, T>where
T: FromData,
impl<'a, T> IntoIterator for LazyArray16<'a, T>where
T: FromData,
§type IntoIter = LazyArrayIter16<'a, T>
type IntoIter = LazyArrayIter16<'a, T>
Which kind of iterator are we turning this into?
source§fn into_iter(self) -> <LazyArray16<'a, T> as IntoIterator>::IntoIter
fn into_iter(self) -> <LazyArray16<'a, T> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
impl<'a, T> Copy for LazyArray16<'a, T>where
T: Copy,
Auto Trait Implementations§
impl<'a, T> Freeze for LazyArray16<'a, T>
impl<'a, T> RefUnwindSafe for LazyArray16<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for LazyArray16<'a, T>where
T: Send,
impl<'a, T> Sync for LazyArray16<'a, T>where
T: Sync,
impl<'a, T> Unpin for LazyArray16<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for LazyArray16<'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