pub struct FontFamilyList {
pub list: Box<[SingleFontFamily]>,
}
Expand description
A list of font families.
Fields§
§list: Box<[SingleFontFamily]>
The actual list of font families specified.
Implementations§
source§impl FontFamilyList
impl FontFamilyList
sourcepub fn iter(&self) -> impl Iterator<Item = &SingleFontFamily>
pub fn iter(&self) -> impl Iterator<Item = &SingleFontFamily>
Return iterator of SingleFontFamily
sourcepub fn single_generic(&self) -> Option<GenericFontFamily>
pub fn single_generic(&self) -> Option<GenericFontFamily>
Return the generic ID if it is a single generic font
Trait Implementations§
source§impl Clone for FontFamilyList
impl Clone for FontFamilyList
source§fn clone(&self) -> FontFamilyList
fn clone(&self) -> FontFamilyList
Returns a copy 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 FontFamilyList
impl Debug for FontFamilyList
source§impl<'de> Deserialize<'de> for FontFamilyList
impl<'de> Deserialize<'de> for FontFamilyList
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for FontFamilyList
impl Hash for FontFamilyList
source§impl MallocSizeOf for FontFamilyList
impl MallocSizeOf for FontFamilyList
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq<FontFamilyList> for FontFamilyList
impl PartialEq<FontFamilyList> for FontFamilyList
source§fn eq(&self, other: &FontFamilyList) -> bool
fn eq(&self, other: &FontFamilyList) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FontFamilyList
impl Serialize for FontFamilyList
source§impl ToComputedValue for FontFamilyListwhere
Box<[SingleFontFamily]>: ToComputedValue<ComputedValue = Box<[SingleFontFamily]>>,
impl ToComputedValue for FontFamilyListwhere Box<[SingleFontFamily]>: ToComputedValue<ComputedValue = Box<[SingleFontFamily]>>,
§type ComputedValue = FontFamilyList
type ComputedValue = FontFamilyList
The computed value type we’re going to be converted to.
source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more
source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.source§impl ToResolvedValue for FontFamilyListwhere
Box<[SingleFontFamily]>: ToResolvedValue<ResolvedValue = Box<[SingleFontFamily]>>,
impl ToResolvedValue for FontFamilyListwhere Box<[SingleFontFamily]>: ToResolvedValue<ResolvedValue = Box<[SingleFontFamily]>>,
§type ResolvedValue = FontFamilyList
type ResolvedValue = FontFamilyList
The resolved value type we’re going to be converted to.
source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.
source§impl ToShmem for FontFamilyList
impl ToShmem for FontFamilyList
impl Eq for FontFamilyList
impl StructuralEq for FontFamilyList
impl StructuralPartialEq for FontFamilyList
Auto Trait Implementations§
impl RefUnwindSafe for FontFamilyList
impl Send for FontFamilyList
impl Sync for FontFamilyList
impl Unpin for FontFamilyList
impl UnwindSafe for FontFamilyList
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert