pub struct GameGeometry {
pub base_width: u32,
pub base_height: u32,
pub max_width: u32,
pub max_height: u32,
pub aspect_ratio: f32,
}Fields§
§base_width: u32§base_height: u32§max_width: u32§max_height: u32§aspect_ratio: f32Trait Implementations§
Source§impl Clone for GameGeometry
impl Clone for GameGeometry
Source§fn clone(&self) -> GameGeometry
fn clone(&self) -> GameGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GameGeometry
impl Debug for GameGeometry
Source§impl Default for GameGeometry
impl Default for GameGeometry
Source§fn default() -> GameGeometry
fn default() -> GameGeometry
Returns the “default value” for a type. Read more
Source§impl PartialEq for GameGeometry
impl PartialEq for GameGeometry
Source§fn eq(&self, other: &GameGeometry) -> bool
fn eq(&self, other: &GameGeometry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GameGeometry
impl StructuralPartialEq for GameGeometry
Auto Trait Implementations§
impl Freeze for GameGeometry
impl RefUnwindSafe for GameGeometry
impl Send for GameGeometry
impl Sync for GameGeometry
impl Unpin for GameGeometry
impl UnsafeUnpin for GameGeometry
impl UnwindSafe for GameGeometry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more