pub struct Offset(pub Number, pub Number);
Expand description
An offset.
Tuple Fields§
§0: Number
§1: Number
Implementations§
Trait Implementations§
source§impl<T> AddAssign<T> for Offsetwhere
T: Into<Offset>,
impl<T> AddAssign<T> for Offsetwhere T: Into<Offset>,
source§fn add_assign(&mut self, other: T)
fn add_assign(&mut self, other: T)
Performs the
+=
operation. Read moresource§impl DivAssign<f32> for Offset
impl DivAssign<f32> for Offset
source§fn div_assign(&mut self, other: f32)
fn div_assign(&mut self, other: f32)
Performs the
/=
operation. Read moresource§impl DivAssign<i16> for Offset
impl DivAssign<i16> for Offset
source§fn div_assign(&mut self, other: i16)
fn div_assign(&mut self, other: i16)
Performs the
/=
operation. Read moresource§impl MulAssign<f32> for Offset
impl MulAssign<f32> for Offset
source§fn mul_assign(&mut self, other: f32)
fn mul_assign(&mut self, other: f32)
Performs the
*=
operation. Read moresource§impl MulAssign<i16> for Offset
impl MulAssign<i16> for Offset
source§fn mul_assign(&mut self, other: i16)
fn mul_assign(&mut self, other: i16)
Performs the
*=
operation. Read moresource§impl PartialEq<Offset> for Offset
impl PartialEq<Offset> for Offset
source§impl<T> SubAssign<T> for Offsetwhere
T: Into<Offset>,
impl<T> SubAssign<T> for Offsetwhere T: Into<Offset>,
source§fn sub_assign(&mut self, other: T)
fn sub_assign(&mut self, other: T)
Performs the
-=
operation. Read more