pub struct Volume(/* private fields */);Expand description
Implementations§
Source§impl Volume
impl Volume
Sourcepub fn in_unit(self, unit: VolumeUnit) -> f64
pub fn in_unit(self, unit: VolumeUnit) -> f64
Get value in the specified VolumeUnit.
Sourcepub fn display_as(self, unit: VolumeUnit) -> DisplayWithUnit
pub fn display_as(self, unit: VolumeUnit) -> DisplayWithUnit
Return a display wrapper that formats this volume in the given unit.
Trait Implementations§
Source§impl AddAssign for Volume
impl AddAssign for Volume
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl DivAssign<f64> for Volume
impl DivAssign<f64> for Volume
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/= operation. Read moreSource§impl MulAssign<f64> for Volume
impl MulAssign<f64> for Volume
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*= operation. Read moreSource§impl PartialOrd for Volume
impl PartialOrd for Volume
Source§impl SubAssign for Volume
impl SubAssign for Volume
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for Volume
impl StructuralPartialEq for Volume
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnsafeUnpin 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