pub struct FontRefs { /* private fields */ }Expand description
A list of candidates, ready to travel.
Shared rather than copied, like a span list: the same list on every frame compares equal and costs no record.
Implementations§
Source§impl FontRefs
impl FontRefs
Sourcepub fn new(refs: impl IntoIterator<Item = FontRef>) -> Self
pub fn new(refs: impl IntoIterator<Item = FontRef>) -> Self
The list, in the order it is tried. Anything past MAX_FONT_REFS is left out.
Sourcepub fn from_bytes(bytes: impl Into<Rc<[u8]>>) -> Self
pub fn from_bytes(bytes: impl Into<Rc<[u8]>>) -> Self
Adopts an already encoded list.
Sourcepub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_bytes(&self) -> &[u8] ⓘ
The property blob: a count, the records, then the names, each record’s name counted from the start of the blob.
pub fn is_empty(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for FontRefs
Auto Trait Implementations§
impl !Send for FontRefs
impl !Sync for FontRefs
impl Freeze for FontRefs
impl RefUnwindSafe for FontRefs
impl Unpin for FontRefs
impl UnsafeUnpin for FontRefs
impl UnwindSafe for FontRefs
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