pub struct Area(/* private fields */);Expand description
Area in square meters.
Implementations§
Source§impl Area
impl Area
Sourcepub const fn square_meters(m2: f64) -> Area
pub const fn square_meters(m2: f64) -> Area
Creates a new area from an f64 value in square meters.
Sourcepub const fn square_kilometers(km2: f64) -> Area
pub const fn square_kilometers(km2: f64) -> Area
Creates a new area from an f64 value in square kilometers.
Sourcepub const fn to_square_meters(&self) -> f64
pub const fn to_square_meters(&self) -> f64
Returns the value of the area in square meters.
Sourcepub const fn to_square_kilometers(&self) -> f64
pub const fn to_square_kilometers(&self) -> f64
Returns the value of the area in square kilometers.
Trait Implementations§
Source§impl AddAssign for Area
impl AddAssign for Area
Source§fn add_assign(&mut self, rhs: Area)
fn add_assign(&mut self, rhs: Area)
Performs the
+= operation. Read moreSource§impl PartialOrd for Area
impl PartialOrd for Area
Source§impl SubAssign for Area
impl SubAssign for Area
Source§fn sub_assign(&mut self, rhs: Area)
fn sub_assign(&mut self, rhs: Area)
Performs the
-= operation. Read moreimpl Copy for Area
impl StructuralPartialEq for Area
Auto Trait Implementations§
impl Freeze for Area
impl RefUnwindSafe for Area
impl Send for Area
impl Sync for Area
impl Unpin for Area
impl UnsafeUnpin for Area
impl UnwindSafe for Area
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