[−][src]Struct ttf_utils::BBox
A bounding box.
Fields
x_min: f32Minimum X coordinate.
y_min: f32Minimum Y coordinate.
x_max: f32Maximum X coordinate.
y_max: f32Maximum Y coordinate.
Implementations
impl BBox[src]
pub fn width(&self) -> f32[src]
Returns the bbox width.
pub fn height(&self) -> f32[src]
Returns the bbox height.
pub fn extend_by(&mut self, x: f32, y: f32)[src]
Extend the bbox.
Trait Implementations
impl Clone for BBox[src]
impl Copy for BBox[src]
impl Debug for BBox[src]
impl Default for BBox[src]
impl PartialEq<BBox> for BBox[src]
impl StructuralPartialEq for BBox[src]
Auto Trait Implementations
impl RefUnwindSafe for BBox[src]
impl Send for BBox[src]
impl Sync for BBox[src]
impl Unpin for BBox[src]
impl UnwindSafe for BBox[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,