pub struct BodyComposition {
pub fat_pct: f32,
pub muscle_pct: f32,
pub bone_pct: f32,
pub water_pct: f32,
}Expand description
Body composition as fractions (should sum to ~1.0).
Fields§
§fat_pct: f32Fraction of body fat (0.0–1.0).
muscle_pct: f32Fraction of muscle mass.
bone_pct: f32Fraction of bone mass.
water_pct: f32Fraction of water.
Trait Implementations§
Source§impl Clone for BodyComposition
impl Clone for BodyComposition
Source§fn clone(&self) -> BodyComposition
fn clone(&self) -> BodyComposition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BodyComposition
impl Debug for BodyComposition
Source§impl PartialEq for BodyComposition
impl PartialEq for BodyComposition
impl StructuralPartialEq for BodyComposition
Auto Trait Implementations§
impl Freeze for BodyComposition
impl RefUnwindSafe for BodyComposition
impl Send for BodyComposition
impl Sync for BodyComposition
impl Unpin for BodyComposition
impl UnsafeUnpin for BodyComposition
impl UnwindSafe for BodyComposition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more