Struct fontconfig::FontSet[][src]

pub struct FontSet<'fc> { /* fields omitted */ }

Wrapper around FcFontSet.

Implementations

impl<'fc> FontSet<'fc>[src]

pub fn new(fc: &Fontconfig) -> FontSet<'_>[src]

Create a new, empty FontSet.

pub fn from_raw(fc: &Fontconfig, raw_set: *mut FcFontSet) -> FontSet<'_>[src]

Wrap an existing FcFontSet.

This returned wrapper assumes ownership of the FcFontSet.

pub fn add_pattern(&mut self, pat: Pattern<'_>)[src]

Add a Pattern to this FontSet.

pub fn print(&self)[src]

Print this FontSet to stdout.

pub fn iter(&self) -> impl Iterator<Item = Pattern<'_>>[src]

Iterate the fonts (as Patterns) in this FontSet.

Trait Implementations

impl<'fc> Drop for FontSet<'fc>[src]

Auto Trait Implementations

impl<'fc> RefUnwindSafe for FontSet<'fc>

impl<'fc> !Send for FontSet<'fc>

impl<'fc> !Sync for FontSet<'fc>

impl<'fc> Unpin for FontSet<'fc>

impl<'fc> UnwindSafe for FontSet<'fc>

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.