Struct swash::ObliqueAngle[][src]

pub struct ObliqueAngle(_);

Angle of an oblique style in degrees from -90 to 90.

Implementations

impl ObliqueAngle[src]

pub fn from_degrees(degrees: f32) -> Self[src]

Creates a new oblique angle from degrees.

pub fn from_radians(radians: f32) -> Self[src]

Creates a new oblique angle from radians.

pub fn from_gradians(gradians: f32) -> Self[src]

Creates a new oblique angle from gradians.

pub fn from_turns(turns: f32) -> Self[src]

Creates a new oblique angle from turns.

pub fn to_degrees(self) -> f32[src]

Returns the oblique angle in degrees.

Trait Implementations

impl Clone for ObliqueAngle[src]

impl Copy for ObliqueAngle[src]

impl Debug for ObliqueAngle[src]

impl Default for ObliqueAngle[src]

impl Eq for ObliqueAngle[src]

impl PartialEq<ObliqueAngle> for ObliqueAngle[src]

impl StructuralEq for ObliqueAngle[src]

impl StructuralPartialEq for ObliqueAngle[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.