Struct show_image::Rectangle [−][src]
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 Ord for Rectangle
[src]
fn cmp(&self, other: &Rectangle) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Rectangle> for Rectangle
[src]
impl PartialOrd<Rectangle> for Rectangle
[src]
fn partial_cmp(&self, other: &Rectangle) -> Option<Ordering>
[src]
fn lt(&self, other: &Rectangle) -> bool
[src]
fn le(&self, other: &Rectangle) -> bool
[src]
fn gt(&self, other: &Rectangle) -> bool
[src]
fn ge(&self, other: &Rectangle) -> bool
[src]
impl StructuralEq for Rectangle
[src]
impl StructuralPartialEq for Rectangle
[src]
Auto Trait Implementations
impl RefUnwindSafe for Rectangle
[src]
impl Send for Rectangle
[src]
impl Sync for Rectangle
[src]
impl Unpin for Rectangle
[src]
impl UnwindSafe for Rectangle
[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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,