pub struct CoordinateRect {
pub left_top: CoordinatePoint,
pub right_bottom: CoordinatePoint,
}Expand description
This is a rectangle in the user-given coordinate system.
Fields§
§left_top: CoordinatePointLeft top starting point of rectangle
right_bottom: CoordinatePointThis is right below of the last point, similiar to that an array length points “behind” the array
Trait Implementations§
Source§impl Debug for CoordinateRect
impl Debug for CoordinateRect
Source§impl PartialEq for CoordinateRect
impl PartialEq for CoordinateRect
impl StructuralPartialEq for CoordinateRect
Auto Trait Implementations§
impl Freeze for CoordinateRect
impl RefUnwindSafe for CoordinateRect
impl Send for CoordinateRect
impl Sync for CoordinateRect
impl Unpin for CoordinateRect
impl UnwindSafe for CoordinateRect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more