[][src]Struct ab_glyph::PxScaleFont

pub struct PxScaleFont<F> {
    pub font: F,
    pub scale: PxScale,
}

A Font and an associated pixel scale.

Fields

font: Fscale: PxScale

Implementations

impl<F> PxScaleFont<F>[src]

pub fn with_scale<S: Into<PxScale>>(self, scale: S) -> Self[src]

Trait Implementations

impl<F: Clone> Clone for PxScaleFont<F>[src]

impl<F: Copy> Copy for PxScaleFont<F>[src]

impl<F: Debug> Debug for PxScaleFont<F>[src]

impl<F: Font> ScaleFont<F> for PxScaleFont<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for PxScaleFont<F> where
    F: RefUnwindSafe

impl<F> Send for PxScaleFont<F> where
    F: Send

impl<F> Sync for PxScaleFont<F> where
    F: Sync

impl<F> Unpin for PxScaleFont<F> where
    F: Unpin

impl<F> UnwindSafe for PxScaleFont<F> where
    F: UnwindSafe

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> 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.