[][src]Enum savory_html::attribute::Coords

pub enum Coords {
    Rect {
        top_left: (f32, f32),
        bottom_right: (f32, f32),
    },
    Circle {
        x: f32,
        y: f32,
        radius: f32,
    },
    Polygon {
        edges: Vec<(f32, f32)>,
    },
}

Variants

Rect

Fields of Rect

top_left: (f32, f32)bottom_right: (f32, f32)
Circle

Fields of Circle

x: f32y: f32radius: f32
Polygon

Fields of Polygon

edges: Vec<(f32, f32)>

Trait Implementations

impl Clone for Coords[src]

impl Debug for Coords[src]

impl Display for Coords[src]

impl From<((f32, f32), (f32, f32))> for Coords[src]

impl From<(f32, f32, f32)> for Coords[src]

impl From<Coords> for Attribute[src]

impl From<Vec<(f32, f32)>> for Coords[src]

impl PartialEq<Coords> for Coords[src]

impl PartialOrd<Coords> for Coords[src]

impl StructuralPartialEq for Coords[src]

impl<Msg> UpdateEl<Msg> for Coords[src]

Auto Trait Implementations

impl RefUnwindSafe for Coords

impl Send for Coords

impl Sync for Coords

impl Unpin for Coords

impl UnwindSafe for Coords

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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> Sealed<T> for T where
    T: ?Sized

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,