Struct s2::rect::Rect[][src]

pub struct Rect {
    pub lat: Interval,
    pub lng: Interval,
}

Fields

Methods

impl Rect
[src]

impl Rect
[src]

contains reports whether this Rect contains the other Rect.

contains_latlng reports whether the given LatLng is within the Rect.

contains_point reports whether the given Point is within the Rect.

Trait Implementations

impl Clone for Rect
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Rect
[src]

Formats the value using the given formatter. Read more

impl<'a, 'b> Add<&'a LatLng> for &'b Rect
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl From<LatLng> for Rect
[src]

Performs the conversion.

impl Region for Rect
[src]

cap_bound returns a cap that countains Rect.

rect_bound returns itself.

contains_cell reports whether the given Cell is contained by this Rect.

intersects_cell reports whether the region intersects the given cell or if intersection could not be determined. It returns false if the region does not intersect. Read more

Auto Trait Implementations

impl Send for Rect

impl Sync for Rect