[][src]Struct font_kit::family_handle::FamilyHandle

pub struct FamilyHandle { /* fields omitted */ }

Encapsulates the information needed to locate and open the fonts in a family.

Methods

impl FamilyHandle[src]

pub fn new() -> FamilyHandle[src]

Creates an empty set of family handles.

pub fn from_font_handles<I>(fonts: I) -> FamilyHandle where
    I: Iterator<Item = Handle>, 
[src]

Creates a set of font family handles.

pub fn push(&mut self, font: Handle)[src]

Adds a new handle to this set.

pub fn is_empty(&self) -> bool[src]

Returns true if and only if this set has no fonts in it.

pub fn fonts(&self) -> &[Handle][src]

Returns all the handles in this set.

Trait Implementations

impl Debug for FamilyHandle[src]

Auto Trait Implementations

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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