pub enum Volume {
Custom(Length),
CubicMeter,
CubicFoot,
Liter,
Milliliter,
Gallon,
Barell,
FluidOunce,
Pint,
Quart,
}Variants§
Implementations§
Source§impl Volume
impl Volume
pub fn convert_to(self, to: Self) -> Self
pub fn to_cubic_meters(&self) -> f64
pub fn to_liters(&self) -> f64
pub fn to_gallons(&self) -> f64
pub fn to_cubic_feet(&self) -> f64
pub fn to_milliliters(&self) -> f64
pub fn to_fluid_ounces(&self) -> f64
pub fn to_pints(&self) -> f64
pub fn to_quarts(&self) -> f64
pub fn to_barrels(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnwindSafe for Volume
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