Struct font_types::BoundingBox
source · 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<T: PartialEq> PartialEq for BoundingBox<T>
impl<T: PartialEq> PartialEq for BoundingBox<T>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)