Struct allsorts_no_std::tables::glyf::BoundingBox[][src]

pub struct BoundingBox {
    pub x_min: i16,
    pub x_max: i16,
    pub y_min: i16,
    pub y_max: i16,
}

Fields

x_min: i16x_max: i16y_min: i16y_max: i16

Implementations

impl BoundingBox[src]

pub fn from_points(points: &[Point]) -> Self[src]

Calculate xMin, xMax and yMin, yMax from a collection of Points

Panics if points is empty.

Trait Implementations

impl Clone for BoundingBox[src]

impl Debug for BoundingBox[src]

impl PartialEq<BoundingBox> for BoundingBox[src]

impl<'a> ReadBinary<'a> for BoundingBox[src]

type HostType = Self

impl StructuralPartialEq for BoundingBox[src]

impl<'a> WriteBinary<BoundingBox> for BoundingBox[src]

type Output = ()

The type of the value returned by write.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> ReadBinaryDep<'a> for T where
    T: ReadBinary<'a>, 
[src]

type Args = ()

type HostType = <T as ReadBinary<'a>>::HostType

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, HostType> WriteBinaryDep<HostType> for T where
    T: WriteBinary<HostType>, 
[src]

type Args = ()

The type of the arguments supplied to write_dep.

type Output = <T as WriteBinary<HostType>>::Output

The type of the value returned by write_dep.