[][src]Struct svgtypes::Angle

pub struct Angle {
    pub num: f64,
    pub unit: AngleUnit,
}

Representation of the <angle> type.

Fields

num: f64unit: AngleUnit

Methods

impl Angle[src]

pub fn new(num: f64, unit: AngleUnit) -> Angle[src]

Constructs a new angle.

Trait Implementations

impl WriteBuffer for Angle[src]

fn write_buf(&self, buf: &mut Vec<u8>)[src]

Writes data to the Vec<u8> buffer using default WriteOptions.

fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self> where
    Self: Sized
[src]

Returns an object that implements fmt::Display using provided write options.

impl FuzzyEq<Angle> for Angle[src]

fn fuzzy_ne(&self, other: &Rhs) -> bool[src]

Returns true if values are not approximately equal.

impl Clone for Angle[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Angle> for Angle[src]

impl Copy for Angle[src]

impl Display for Angle[src]

impl Debug for Angle[src]

impl FromStr for Angle[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Sync for Angle

impl Send for Angle

impl Unpin for Angle

impl RefUnwindSafe for Angle

impl UnwindSafe for Angle

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]