[][src]Struct math2d::Sizeu

#[repr(C)]
pub struct Sizeu { pub width: u32, pub height: u32, }

Stores an ordered pair of unsigned integer values, typically the width and height of a rectangle.

Fields

width: u32

Horizontal component.

height: u32

Vertical component.

Methods

impl Sizeu[src]

pub fn new(width: u32, height: u32) -> Sizeu[src]

Constructs a size from the components.

Trait Implementations

impl Copy for Sizeu[src]

impl PartialEq<Sizeu> for Sizeu[src]

impl From<u32> for Sizeu[src]

impl From<(u32, u32)> for Sizeu[src]

impl Clone for Sizeu[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Sizeu[src]

impl Debug for Sizeu[src]

impl Serialize for Sizeu[src]

impl<'de> Deserialize<'de> for Sizeu[src]

Auto Trait Implementations

impl Send for Sizeu

impl Sync for Sizeu

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]