Struct draw2d::geometry::Rect [−][src]
pub struct Rect<T: Scalar> { pub left: T, pub right: T, pub bottom: T, pub top: T, }
Fields
left: T
right: T
bottom: T
top: T
Implementations
Check if a point is contained within this rectangle.
Returns
true
when the point is contained within the rectangle. Comparison is inclusive, so the edges of the rectangle are considered ‘inside’.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Rect<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Rect<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Checks if self
is actually part of its subset T
(and can be converted to it).
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
The inclusion map: converts self
to the equivalent element of its superset.