pub struct BoundingBox<T> {
pub x_min: T,
pub y_min: T,
pub x_max: T,
pub y_max: T,
}
Expand description
Minimum and maximum extents of a rectangular region.
Fields§
§x_min: T
Minimum extent in the x direction– the left side of a region.
y_min: T
Minimum extent in the y direction. In a Y-up coordinate system, which is used by fonts, this represents the bottom of a region.
x_max: T
Maximum extent in the x direction– the right side of a region.
y_max: T
Maximum extend in the y direction. In a Y-up coordinate system, which is used by fonts, this represents the top of the region.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for BoundingBox<T>
impl<T: Clone> Clone for BoundingBox<T>
Source§fn clone(&self) -> BoundingBox<T>
fn clone(&self) -> BoundingBox<T>
Returns a copy 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<T: Debug> Debug for BoundingBox<T>
impl<T: Debug> Debug for BoundingBox<T>
Source§impl<T: Default> Default for BoundingBox<T>
impl<T: Default> Default for BoundingBox<T>
Source§fn default() -> BoundingBox<T>
fn default() -> BoundingBox<T>
Returns the “default value” for a type. Read more
Source§impl<'de, T> Deserialize<'de> for BoundingBox<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for BoundingBox<T>where
T: Deserialize<'de>,
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<T: PartialEq> PartialEq for BoundingBox<T>
impl<T: PartialEq> PartialEq for BoundingBox<T>
Source§impl<T> Serialize for BoundingBox<T>where
T: Serialize,
impl<T> Serialize for BoundingBox<T>where
T: Serialize,
impl<T: Copy> Copy for BoundingBox<T>
impl<T: Eq> Eq for BoundingBox<T>
impl<T> StructuralPartialEq for BoundingBox<T>
Auto Trait Implementations§
impl<T> Freeze for BoundingBox<T>where
T: Freeze,
impl<T> RefUnwindSafe for BoundingBox<T>where
T: RefUnwindSafe,
impl<T> Send for BoundingBox<T>where
T: Send,
impl<T> Sync for BoundingBox<T>where
T: Sync,
impl<T> Unpin for BoundingBox<T>where
T: Unpin,
impl<T> UnwindSafe for BoundingBox<T>where
T: UnwindSafe,
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