pub struct Set { /* private fields */ }Expand description
A strength set as it ended: what was lifted, how many times.
use fit_encoder::{Exercise, ExerciseCategory, Set};
let set = Set::new()
.exercise(Exercise::new(ExerciseCategory::BENCH_PRESS))
.repetitions(8)
.weight_kilograms(60.0);Implementations§
Source§impl Set
impl Set
Sourcepub const fn repetitions(self, repetitions: u16) -> Self
pub const fn repetitions(self, repetitions: u16) -> Self
The repetitions, up to 65,534.
Sourcepub fn weight_kilograms(self, kilograms: f64) -> Self
pub fn weight_kilograms(self, kilograms: f64) -> Self
The weight lifted in kilograms, up to 4,095.875 once rounded to a sixteenth; shown in kilograms.
Sourcepub fn weight_pounds(self, pounds: f64) -> Self
pub fn weight_pounds(self, pounds: f64) -> Self
The weight lifted in pounds, kept in kilograms as Set::weight_kilograms keeps them,
so up to about 9,029.9 lb; shown in pounds.
Trait Implementations§
impl Copy for Set
impl Eq for Set
impl StructuralPartialEq for Set
Auto Trait Implementations§
impl Forget for Set
impl Freeze for Set
impl Move for Set
impl RefUnwindSafe for Set
impl Send for Set
impl Sync for Set
impl Unpin for Set
impl UnsafeUnpin for Set
impl UnwindSafe for Set
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