struct ExtentsSources<'a> {
items: [Option<ExtentsSource<'a>>; 6],
len: usize,
}Expand description
The sources available in a font, in the order they are tried.
The three bitmap tables, COLR and VARC take an entry each, and the
four outline sources share one, so six entries always suffice.
Fields§
§items: [Option<ExtentsSource<'a>>; 6]§len: usizeImplementations§
Source§impl<'a> ExtentsSources<'a>
impl<'a> ExtentsSources<'a>
fn new(metrics: &GlyphMetrics<'a>) -> Self
fn is_empty(&self) -> bool
Sourcefn only(&self) -> Option<ExtentsSource<'a>>
fn only(&self) -> Option<ExtentsSource<'a>>
Returns the source if there is exactly one.
fn iter(&self) -> impl Iterator<Item = &ExtentsSource<'a>>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ExtentsSources<'a>
impl<'a> !UnwindSafe for ExtentsSources<'a>
impl<'a> Freeze for ExtentsSources<'a>
impl<'a> Send for ExtentsSources<'a>
impl<'a> Sync for ExtentsSources<'a>
impl<'a> Unpin for ExtentsSources<'a>
impl<'a> UnsafeUnpin for ExtentsSources<'a>
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