Struct specs_camera::ScreenSize [−][src]
Methods
impl ScreenSize
[src]
impl ScreenSize
pub fn new(w: usize, h: usize) -> ScreenSize
[src]
pub fn new(w: usize, h: usize) -> ScreenSize
pub fn width(&self) -> usize
[src]
pub fn width(&self) -> usize
pub fn height(&self) -> usize
[src]
pub fn height(&self) -> usize
Trait Implementations
impl Debug for ScreenSize
[src]
impl Debug for ScreenSize
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 Default for ScreenSize
[src]
impl Default for ScreenSize
fn default() -> ScreenSize
[src]
fn default() -> ScreenSize
Returns the "default value" for a type. Read more
impl Copy for ScreenSize
[src]
impl Copy for ScreenSize
impl Clone for ScreenSize
[src]
impl Clone for ScreenSize
fn clone(&self) -> ScreenSize
[src]
fn clone(&self) -> ScreenSize
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)
Performs copy-assignment from source
. Read more
impl PartialEq for ScreenSize
[src]
impl PartialEq for ScreenSize
fn eq(&self, other: &ScreenSize) -> bool
[src]
fn eq(&self, other: &ScreenSize) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ScreenSize) -> bool
[src]
fn ne(&self, other: &ScreenSize) -> bool
This method tests for !=
.
impl Eq for ScreenSize
[src]
impl Eq for ScreenSize
impl PartialOrd for ScreenSize
[src]
impl PartialOrd for ScreenSize
fn partial_cmp(&self, other: &ScreenSize) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &ScreenSize) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &ScreenSize) -> bool
[src]
fn lt(&self, other: &ScreenSize) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &ScreenSize) -> bool
[src]
fn le(&self, other: &ScreenSize) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &ScreenSize) -> bool
[src]
fn gt(&self, other: &ScreenSize) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &ScreenSize) -> bool
[src]
fn ge(&self, other: &ScreenSize) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for ScreenSize
[src]
impl Ord for ScreenSize
fn cmp(&self, other: &ScreenSize) -> Ordering
[src]
fn cmp(&self, other: &ScreenSize) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
Auto Trait Implementations
impl Send for ScreenSize
impl Send for ScreenSize
impl Sync for ScreenSize
impl Sync for ScreenSize