Struct fontconfig::FontSet

source ·
pub struct FontSet<'fc> { /* private fields */ }
Expand description

Wrapper around FcFontSet.

Implementations§

source§

impl<'fc> FontSet<'fc>

source

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

Create a new, empty FontSet.

source

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

Wrap an existing FcFontSet.

The returned wrapper assumes ownership of the FcFontSet.

Safety: The font set pointer must be valid/non-null.

source

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

Add a Pattern to this FontSet.

source

pub fn print(&self)

Print this FontSet to stdout.

source

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

Iterate the fonts (as Patterns) in this FontSet.

Trait Implementations§

source§

impl<'fc> Drop for FontSet<'fc>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.