pub struct FontDemand {
pub families: Vec<String>,
pub codepoints: Vec<(char, FontAttrs)>,
}Expand description
FontDemand describes font requests that no registered face could satisfy.
Hosts can use it to load additional fonts and lay out affected text again.
Fields§
§families: Vec<String>families lists requested family names with no registered match.
codepoints: Vec<(char, FontAttrs)>codepoints lists uncovered characters and their requested attributes.
Implementations§
Trait Implementations§
Source§impl Clone for FontDemand
impl Clone for FontDemand
Source§fn clone(&self) -> FontDemand
fn clone(&self) -> FontDemand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FontDemand
impl Debug for FontDemand
Source§impl Default for FontDemand
impl Default for FontDemand
Source§fn default() -> FontDemand
fn default() -> FontDemand
Returns the “default value” for a type. Read more
Source§impl PartialEq for FontDemand
impl PartialEq for FontDemand
impl StructuralPartialEq for FontDemand
Auto Trait Implementations§
impl Freeze for FontDemand
impl RefUnwindSafe for FontDemand
impl Send for FontDemand
impl Sync for FontDemand
impl Unpin for FontDemand
impl UnsafeUnpin for FontDemand
impl UnwindSafe for FontDemand
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