[][src]Struct glyph_brush_draw_cache::Rectangle

pub struct Rectangle<N> {
    pub min: [N; 2],
    pub max: [N; 2],
}

A rectangle, with top-left corner at min, and bottom-right corner at max.

Fields

min: [N; 2]max: [N; 2]

Implementations

impl<N: Sub<Output = N> + Copy> Rectangle<N>[src]

pub fn width(&self) -> N[src]

pub fn height(&self) -> N[src]

Trait Implementations

impl<N: Clone> Clone for Rectangle<N>[src]

impl<N: Copy> Copy for Rectangle<N>[src]

impl<N: Debug> Debug for Rectangle<N>[src]

impl<N: Default> Default for Rectangle<N>[src]

impl<N: Eq> Eq for Rectangle<N>[src]

impl<N: Hash> Hash for Rectangle<N>[src]

impl<N: Ord> Ord for Rectangle<N>[src]

impl<N: PartialEq> PartialEq<Rectangle<N>> for Rectangle<N>[src]

impl<N: PartialOrd> PartialOrd<Rectangle<N>> for Rectangle<N>[src]

impl<N> StructuralEq for Rectangle<N>[src]

impl<N> StructuralPartialEq for Rectangle<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for Rectangle<N> where
    N: RefUnwindSafe

impl<N> Send for Rectangle<N> where
    N: Send

impl<N> Sync for Rectangle<N> where
    N: Sync

impl<N> Unpin for Rectangle<N> where
    N: Unpin

impl<N> UnwindSafe for Rectangle<N> where
    N: UnwindSafe

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> Pointable for T

type Init = T

The type for initializers.

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.