[][src]Struct mupdf::IRect

pub struct IRect {
    pub x0: i32,
    pub y0: i32,
    pub x1: i32,
    pub y1: i32,
}

Fields

x0: i32y0: i32x1: i32y1: i32

Implementations

impl IRect[src]

pub const INF: Self[src]

pub const fn new(x0: i32, y0: i32, x1: i32, y1: i32) -> Self[src]

pub fn is_empty(&self) -> bool[src]

pub fn contains(&self, x: i32, y: i32) -> bool[src]

pub fn width(&self) -> i32[src]

pub fn height(&self) -> i32[src]

pub fn origin(&self) -> Point[src]

pub fn size(&self) -> Size[src]

pub fn union(&mut self, other: IRect) -> &mut Self[src]

Trait Implementations

impl Clone for IRect[src]

impl Copy for IRect[src]

impl Debug for IRect[src]

impl Default for IRect[src]

impl Display for IRect[src]

impl From<IRect> for Rect[src]

impl From<fz_irect> for IRect[src]

impl Into<fz_irect> for IRect[src]

impl PartialEq<IRect> for IRect[src]

impl StructuralPartialEq for IRect[src]

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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.