pub struct CssFallbackGroup {
pub css_name: String,
pub fonts: Vec<FontMatch>,
}Expand description
A group of fonts that are fallbacks for a single CSS font-family name
Fields§
§css_name: StringThe CSS font name (e.g., “NotoSansJP”, “sans-serif”)
fonts: Vec<FontMatch>System fonts that match this CSS name First font in list is the best match
Trait Implementations§
Source§impl Clone for CssFallbackGroup
impl Clone for CssFallbackGroup
Source§fn clone(&self) -> CssFallbackGroup
fn clone(&self) -> CssFallbackGroup
Returns a duplicate 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 Debug for CssFallbackGroup
impl Debug for CssFallbackGroup
Source§impl PartialEq for CssFallbackGroup
impl PartialEq for CssFallbackGroup
impl Eq for CssFallbackGroup
impl StructuralPartialEq for CssFallbackGroup
Auto Trait Implementations§
impl Freeze for CssFallbackGroup
impl RefUnwindSafe for CssFallbackGroup
impl Send for CssFallbackGroup
impl Sync for CssFallbackGroup
impl Unpin for CssFallbackGroup
impl UnwindSafe for CssFallbackGroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more