pub struct BoundingRectF64 {
pub left_top: PointF64,
pub right_bottom: PointF64,
}Fields§
§left_top: PointF64§right_bottom: PointF64Implementations§
Source§impl BoundingRectF64
impl BoundingRectF64
pub fn new(left_top: PointF64, right_bottom: PointF64) -> Self
pub fn new_x_y_w_h(x: f64, y: f64, w: f64, h: f64) -> Self
pub fn new_xy_wh(xy: PointF64, wh: PointF64) -> Self
pub fn is_empty(self) -> bool
pub fn right_top(&self) -> PointF64
pub fn left_bottom(&self) -> PointF64
pub fn width(self) -> f64
pub fn height(self) -> f64
pub fn merge(&mut self, other: Self)
pub fn add_point(&mut self, p: PointF64)
pub fn to_rect(&self) -> BoundingRect
Trait Implementations§
Source§impl Bound for BoundingRectF64
impl Bound for BoundingRectF64
Source§impl Clone for BoundingRectF64
impl Clone for BoundingRectF64
Source§fn clone(&self) -> BoundingRectF64
fn clone(&self) -> BoundingRectF64
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BoundingRectF64
impl Debug for BoundingRectF64
Source§impl Default for BoundingRectF64
impl Default for BoundingRectF64
Source§impl PartialEq for BoundingRectF64
impl PartialEq for BoundingRectF64
impl Copy for BoundingRectF64
impl StructuralPartialEq for BoundingRectF64
Auto Trait Implementations§
impl Freeze for BoundingRectF64
impl RefUnwindSafe for BoundingRectF64
impl Send for BoundingRectF64
impl Sync for BoundingRectF64
impl Unpin for BoundingRectF64
impl UnwindSafe for BoundingRectF64
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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