Struct mint2d::Size [−][src]
A simple struct that represents the size of an object.
Fields
width: f64
The width of the object.
height: f64
The height of the object.
Trait Implementations
impl Copy for Size
[src]
impl Copy for Size
impl Clone for Size
[src]
impl Clone for Size
fn clone(&self) -> Size
[src]
fn clone(&self) -> Size
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Size
[src]
impl Debug for Size
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Size
[src]
impl PartialEq for Size
fn eq(&self, other: &Size) -> bool
[src]
fn eq(&self, other: &Size) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Size) -> bool
[src]
fn ne(&self, other: &Size) -> bool
This method tests for !=
.
impl Default for Size
[src]
impl Default for Size