pub struct BoundingBox2D {
pub lower_left_coordinate: Box<Coordinate2D>,
pub upper_right_coordinate: Box<Coordinate2D>,
}Expand description
BoundingBox2D : A bounding box that includes all border points. Note: may degenerate to a point!
Fields§
§lower_left_coordinate: Box<Coordinate2D>§upper_right_coordinate: Box<Coordinate2D>Implementations§
Source§impl BoundingBox2D
impl BoundingBox2D
Sourcepub fn new(
lower_left_coordinate: Coordinate2D,
upper_right_coordinate: Coordinate2D,
) -> BoundingBox2D
pub fn new( lower_left_coordinate: Coordinate2D, upper_right_coordinate: Coordinate2D, ) -> BoundingBox2D
A bounding box that includes all border points. Note: may degenerate to a point!
Trait Implementations§
Source§impl Clone for BoundingBox2D
impl Clone for BoundingBox2D
Source§fn clone(&self) -> BoundingBox2D
fn clone(&self) -> BoundingBox2D
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BoundingBox2D
impl Debug for BoundingBox2D
Source§impl Default for BoundingBox2D
impl Default for BoundingBox2D
Source§fn default() -> BoundingBox2D
fn default() -> BoundingBox2D
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BoundingBox2D
impl<'de> Deserialize<'de> for BoundingBox2D
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BoundingBox2D
impl PartialEq for BoundingBox2D
Source§fn eq(&self, other: &BoundingBox2D) -> bool
fn eq(&self, other: &BoundingBox2D) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BoundingBox2D
impl Serialize for BoundingBox2D
impl StructuralPartialEq for BoundingBox2D
Auto Trait Implementations§
impl Freeze for BoundingBox2D
impl RefUnwindSafe for BoundingBox2D
impl Send for BoundingBox2D
impl Sync for BoundingBox2D
impl Unpin for BoundingBox2D
impl UnsafeUnpin for BoundingBox2D
impl UnwindSafe for BoundingBox2D
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