Struct ttf_parser::Variation[][src]

pub struct Variation {
    pub axis: Tag,
    pub value: f32,
}

A font variation value.

Example

use ttf_parser::{Variation, Tag};

Variation { axis: Tag::from_bytes(b"wght"), value: 500.0 };

Fields

axis: Tag

An axis tag name.

value: f32

An axis value.

Trait Implementations

impl Clone for Variation[src]

impl Copy for Variation[src]

impl Debug for Variation[src]

impl PartialEq<Variation> for Variation[src]

impl StructuralPartialEq for Variation[src]

Auto Trait Implementations

impl RefUnwindSafe for Variation

impl Send for Variation

impl Sync for Variation

impl Unpin for Variation

impl UnwindSafe for Variation

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.