Struct geo::Rect [−][src]
pub struct Rect<T> where
T: CoordinateType, { pub min: Coordinate<T>, pub max: Coordinate<T>, }
Fields
min: Coordinate<T>
max: Coordinate<T>
Trait Implementations
impl<T> Clone for Rect<T> where
T: Clone + CoordinateType, [src]
impl<T> Clone for Rect<T> where
T: Clone + CoordinateType, fn clone(&self) -> Rect<T>[src]
fn clone(&self) -> Rect<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T> Debug for Rect<T> where
T: Debug + CoordinateType, [src]
impl<T> Debug for Rect<T> where
T: Debug + CoordinateType, fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<T> Copy for Rect<T> where
T: Copy + CoordinateType, [src]
impl<T> Copy for Rect<T> where
T: Copy + CoordinateType, impl<T> PartialEq<Rect<T>> for Rect<T> where
T: PartialEq<T> + CoordinateType, [src]
impl<T> PartialEq<Rect<T>> for Rect<T> where
T: PartialEq<T> + CoordinateType, fn eq(&self, other: &Rect<T>) -> bool[src]
fn eq(&self, other: &Rect<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rect<T>) -> bool[src]
fn ne(&self, other: &Rect<T>) -> boolThis method tests for !=.
impl<T> Area<T> for Rect<T> where
T: Float, [src]
impl<T> Area<T> for Rect<T> where
T: Float, impl<T> Centroid<T> for Rect<T> where
T: Float, [src]
impl<T> Centroid<T> for Rect<T> where
T: Float, type Output = Point<T>
fn centroid(&self) -> Self::Output[src]
fn centroid(&self) -> Self::OutputSee: https://en.wikipedia.org/wiki/Centroid Read more
impl<T> Contains<Point<T>> for Rect<T> where
T: CoordinateType, [src]
impl<T> Contains<Point<T>> for Rect<T> where
T: CoordinateType, fn contains(&self, p: &Point<T>) -> bool[src]
fn contains(&self, p: &Point<T>) -> boolChecks if rhs is completely contained within self. Read more
impl<T> Contains<Rect<T>> for Rect<T> where
T: CoordinateType, [src]
impl<T> Contains<Rect<T>> for Rect<T> where
T: CoordinateType, fn contains(&self, bounding_rect: &Rect<T>) -> bool[src]
fn contains(&self, bounding_rect: &Rect<T>) -> boolChecks if rhs is completely contained within self. Read more
impl<T> Intersects<Rect<T>> for Rect<T> where
T: Float, [src]
impl<T> Intersects<Rect<T>> for Rect<T> where
T: Float, fn intersects(&self, bounding_rect: &Rect<T>) -> bool[src]
fn intersects(&self, bounding_rect: &Rect<T>) -> boolChecks if the geometry A intersects the geometry B. Read more
impl<T> Intersects<Polygon<T>> for Rect<T> where
T: Float, [src]
impl<T> Intersects<Polygon<T>> for Rect<T> where
T: Float, fn intersects(&self, polygon: &Polygon<T>) -> bool[src]
fn intersects(&self, polygon: &Polygon<T>) -> boolChecks if the geometry A intersects the geometry B. Read more
impl<T> Intersects<Rect<T>> for Polygon<T> where
T: Float, [src]
impl<T> Intersects<Rect<T>> for Polygon<T> where
T: Float, fn intersects(&self, bounding_rect: &Rect<T>) -> bool[src]
fn intersects(&self, bounding_rect: &Rect<T>) -> boolChecks if the geometry A intersects the geometry B. Read more