Struct show_image::Rectangle[][src]

pub struct Rectangle { /* fields omitted */ }

A rectangle.

Implementations

impl Rectangle[src]

pub fn from_xywh(x: i32, y: i32, width: u32, height: u32) -> Self[src]

Create a rectangle from X, Y coordinates and the width and height.

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

Get the X location of the rectangle.

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

Get the Y location of the rectangle.

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

Get the width of the rectangle.

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

Get the height of the rectangle.

Trait Implementations

impl Clone for Rectangle[src]

impl Debug for Rectangle[src]

impl Eq for Rectangle[src]

impl<'a> From<&'a Rect> for Rectangle[src]

impl From<Rect> for Rectangle[src]

impl Ord for Rectangle[src]

impl PartialEq<Rectangle> for Rectangle[src]

impl PartialOrd<Rectangle> for Rectangle[src]

impl StructuralEq for Rectangle[src]

impl StructuralPartialEq for Rectangle[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> Pointable for T

type Init = T

The type for initializers.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,