[][src]Struct ttf_parser::NormalizedCoordinate

#[repr(transparent)]pub struct NormalizedCoordinate(_);

A variation coordinate in a normalized coordinate system.

Basically any number in a -1.0..1.0 range. Where 0 is a default value.

The number is stored as f2.16

Implementations

impl NormalizedCoordinate[src]

pub fn get(self) -> i16[src]

Returns the coordinate value as f2.14.

Trait Implementations

impl Clone for NormalizedCoordinate[src]

impl Copy for NormalizedCoordinate[src]

impl Debug for NormalizedCoordinate[src]

impl Default for NormalizedCoordinate[src]

impl From<f32> for NormalizedCoordinate[src]

fn from(n: f32) -> Self[src]

Creates a new coordinate.

The provided number will be clamped to the -1.0..1.0 range.

impl From<i16> for NormalizedCoordinate[src]

fn from(n: i16) -> Self[src]

Creates a new coordinate.

The provided number will be clamped to the -16384..16384 range.

impl PartialEq<NormalizedCoordinate> for NormalizedCoordinate[src]

impl StructuralPartialEq for NormalizedCoordinate[src]

Auto Trait Implementations

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.