[][src]Struct valora::forms::Rect

pub struct Rect {
    pub bottom_left: P2,
    pub width: f32,
    pub height: f32,
}

Fields

bottom_left: P2width: f32height: f32

Methods

impl Rect[src]

pub fn extent(vertices: impl Iterator<Item = P2>) -> Self[src]

Returns a Rect containing all given vertices.

pub fn vertices(&self) -> impl DoubleEndedIterator<Item = P2> + Clone[src]

Trait Implementations

impl Center for Rect[src]

impl Clone for Rect[src]

impl Copy for Rect[src]

impl Debug for Rect[src]

impl Paint for Rect[src]

impl PartialEq<Rect> for Rect[src]

impl Scale for Rect[src]

impl StructuralPartialEq for Rect[src]

impl Translate for Rect[src]

Auto Trait Implementations

impl RefUnwindSafe for Rect

impl Send for Rect

impl Sync for Rect

impl Unpin for Rect

impl UnwindSafe for Rect

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> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

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

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

impl<P> Paint for P where
    P: Iterator<Item = Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>> + Clone
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

impl<T> SetParameter for T

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,