pub struct Dimensions {
pub x: f32,
pub y: f32,
}Fields§
§x: f32§y: f32Implementations§
Trait Implementations§
Source§impl Add<i32> for Dimensions
impl Add<i32> for Dimensions
Source§impl Add for Dimensions
impl Add for Dimensions
Source§type Output = Dimensions
type Output = Dimensions
The resulting type after applying the
+ operator.Source§fn add(self, rhs: Dimensions) -> Dimensions
fn add(self, rhs: Dimensions) -> Dimensions
Performs the
+ operation. Read moreSource§impl Clone for Dimensions
impl Clone for Dimensions
Source§fn clone(&self) -> Dimensions
fn clone(&self) -> Dimensions
Returns a duplicate of the value. Read more
1.0.0 · 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 Dimensions
impl Debug for Dimensions
Source§impl Div<f32> for Dimensions
impl Div<f32> for Dimensions
Source§impl Div for Dimensions
impl Div for Dimensions
Source§type Output = Dimensions
type Output = Dimensions
The resulting type after applying the
/ operator.Source§fn div(self, rhs: Dimensions) -> Dimensions
fn div(self, rhs: Dimensions) -> Dimensions
Performs the
/ operation. Read moreSource§impl From<f32> for Dimensions
impl From<f32> for Dimensions
Source§impl From<i32> for Dimensions
impl From<i32> for Dimensions
Source§impl Into<Scale> for Dimensions
impl Into<Scale> for Dimensions
Source§impl Mul<i32> for Dimensions
impl Mul<i32> for Dimensions
Source§impl Mul for Dimensions
impl Mul for Dimensions
Source§type Output = Dimensions
type Output = Dimensions
The resulting type after applying the
* operator.Source§fn mul(self, rhs: Dimensions) -> Dimensions
fn mul(self, rhs: Dimensions) -> Dimensions
Performs the
* operation. Read moreSource§impl Sub<i32> for Dimensions
impl Sub<i32> for Dimensions
Source§impl Sub for Dimensions
impl Sub for Dimensions
Source§type Output = Dimensions
type Output = Dimensions
The resulting type after applying the
- operator.Source§fn sub(self, rhs: Dimensions) -> Dimensions
fn sub(self, rhs: Dimensions) -> Dimensions
Performs the
- operation. Read moreimpl Copy for Dimensions
Auto Trait Implementations§
impl Freeze for Dimensions
impl RefUnwindSafe for Dimensions
impl Send for Dimensions
impl Sync for Dimensions
impl Unpin for Dimensions
impl UnwindSafe for Dimensions
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