pub struct FontOverride { /* private fields */ }Expand description
One product’s answer for one slot: the stack, and any faces it ships.
Implementations§
Source§impl FontOverride
impl FontOverride
Sourcepub fn new(slot: FontSlot, stack: impl Into<String>) -> Self
pub fn new(slot: FontSlot, stack: impl Into<String>) -> Self
Point slot at stack.
stack is the CSS value the token takes, written the way the house
stacks are: the family, then one hop to a system generic. Layer 2 is
still one hop and no further — an override is a different answer to the
slot, not a licence to write the fallback chain the standard deleted.
Trait Implementations§
Source§impl Clone for FontOverride
impl Clone for FontOverride
Auto Trait Implementations§
impl Freeze for FontOverride
impl RefUnwindSafe for FontOverride
impl Send for FontOverride
impl Sync for FontOverride
impl Unpin for FontOverride
impl UnsafeUnpin for FontOverride
impl UnwindSafe for FontOverride
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