pub enum Area {
Acre,
Hectare,
SquareMeter,
SquareKilometer,
SquareMile,
SquareFoot,
Custom(Length),
}Variants§
Implementations§
Source§impl Area
impl Area
pub fn convert_to(self, to: Self) -> Self
pub fn to_square_meters(&self) -> f64
pub fn to_acres(&self) -> f64
pub fn to_hectares(&self) -> f64
pub fn to_square_kilometers(&self) -> f64
pub fn to_square_miles(&self) -> f64
pub fn to_square_feet(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Area
impl RefUnwindSafe for Area
impl Send for Area
impl Sync for Area
impl Unpin 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