Struct suzy::dims::FixedSizeRect[][src]

pub struct FixedSizeRect { /* fields omitted */ }

A rectangular region which will ignore changes to size

Implementations

impl FixedSizeRect[src]

pub fn new(x: Dim, y: Dim) -> Self[src]

Create a new FixedSizeRect with the specified dimensions.

pub fn default_pos(width: f32, height: f32) -> Self[src]

Create a new FixedSizeRect with the specified size, positioned at the bottom left.

Trait Implementations

impl Clone for FixedSizeRect[src]

impl Copy for FixedSizeRect[src]

impl From<SimpleRect> for FixedSizeRect[src]

impl<'a> Rect for FixedSizeRect[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> DynRect for T where
    T: Rect
[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, 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.