Struct geo::Rect[][src]

pub struct Rect<T> where
    T: CoordinateType
{ pub min: Coordinate<T>, pub max: Coordinate<T>, }

Fields

Trait Implementations

impl<T> Clone for Rect<T> where
    T: Clone + CoordinateType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Debug for Rect<T> where
    T: Debug + CoordinateType
[src]

Formats the value using the given formatter. Read more

impl<T> Copy for Rect<T> where
    T: Copy + CoordinateType
[src]

impl<T> PartialEq<Rect<T>> for Rect<T> where
    T: PartialEq<T> + CoordinateType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Area<T> for Rect<T> where
    T: Float
[src]

Signed area of a geometry. Read more

impl<T> Centroid<T> for Rect<T> where
    T: Float
[src]

See: https://en.wikipedia.org/wiki/Centroid Read more

impl<T> Contains<Point<T>> for Rect<T> where
    T: CoordinateType
[src]

Checks if rhs is completely contained within self. Read more

impl<T> Contains<Rect<T>> for Rect<T> where
    T: CoordinateType
[src]

Checks if rhs is completely contained within self. Read more

impl<T> Intersects<Rect<T>> for Rect<T> where
    T: Float
[src]

Checks if the geometry A intersects the geometry B. Read more

impl<T> Intersects<Polygon<T>> for Rect<T> where
    T: Float
[src]

Checks if the geometry A intersects the geometry B. Read more

impl<T> Intersects<Rect<T>> for Polygon<T> where
    T: Float
[src]

Checks if the geometry A intersects the geometry B. Read more

Auto Trait Implementations

impl<T> Send for Rect<T> where
    T: Send

impl<T> Sync for Rect<T> where
    T: Sync