[][src]Struct style::values::computed::font::FontFamily

pub struct FontFamily {
    pub families: FontFamilyList,
    pub is_system_font: bool,
}

Specifies a prioritized list of font family names or generic family names.

Fields

families: FontFamilyList

The actual list of family names.

is_system_font: bool

Whether this font-family came from a specified system-font.

Implementations

impl FontFamily[src]

pub fn serif() -> Self[src]

Get default font family as serif which is a generic font-family

Trait Implementations

impl Clone for FontFamily[src]

impl Debug for FontFamily[src]

impl<'de> Deserialize<'de> for FontFamily[src]

impl Eq for FontFamily[src]

impl Hash for FontFamily[src]

impl MallocSizeOf for FontFamily[src]

impl PartialEq<FontFamily> for FontFamily[src]

impl Serialize for FontFamily[src]

impl StructuralEq for FontFamily[src]

impl StructuralPartialEq for FontFamily[src]

impl ToComputedValue for FontFamily where
    FontFamilyList: ToComputedValue<ComputedValue = FontFamilyList>,
    bool: ToComputedValue<ComputedValue = bool>, 
[src]

type ComputedValue = FontFamily

The computed value type we're going to be converted to.

impl ToCss for FontFamily[src]

impl ToResolvedValue for FontFamily where
    FontFamilyList: ToResolvedValue<ResolvedValue = FontFamilyList>,
    bool: ToResolvedValue<ResolvedValue = bool>, 
[src]

type ResolvedValue = FontFamily

The resolved value type we're going to be converted to.

Auto Trait Implementations

impl RefUnwindSafe for FontFamily

impl Send for FontFamily

impl Sync for FontFamily

impl Unpin for FontFamily

impl UnwindSafe for FontFamily

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeBoxed<Box<T>> for T[src]

impl<T> MaybeBoxed<T> for T[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]