pub struct Pt(pub f32);
Expand description
Scale in point
Tuple Fields§
§0: f32
Trait Implementations§
source§impl AddAssign for Pt
impl AddAssign for Pt
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl DivAssign<f32> for Pt
impl DivAssign<f32> for Pt
source§fn div_assign(&mut self, other: f32)
fn div_assign(&mut self, other: f32)
Performs the
/=
operation. Read moresource§impl MulAssign<f32> for Pt
impl MulAssign<f32> for Pt
source§fn mul_assign(&mut self, other: f32)
fn mul_assign(&mut self, other: f32)
Performs the
*=
operation. Read moresource§impl Ord for Pt
impl Ord for Pt
source§impl PartialOrd for Pt
impl PartialOrd for Pt
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SubAssign for Pt
impl SubAssign for Pt
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl Copy for Pt
impl Eq for Pt
Auto Trait Implementations§
impl RefUnwindSafe for Pt
impl Send for Pt
impl Sync for Pt
impl Unpin for Pt
impl UnwindSafe for Pt
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