pub struct Exercise { /* private fields */ }Expand description
A strength exercise: its category and, optionally, its name within the category, the
number from that category’s list of names (bench_press_exercise_name and so on).
use fit_encoder::{Exercise, ExerciseCategory};
let squat = Exercise::new(ExerciseCategory::SQUAT);
let goblet_squat = squat.name(37);Implementations§
Trait Implementations§
impl Copy for Exercise
impl Eq for Exercise
impl StructuralPartialEq for Exercise
Auto Trait Implementations§
impl Forget for Exercise
impl Freeze for Exercise
impl Move for Exercise
impl RefUnwindSafe for Exercise
impl Send for Exercise
impl Sync for Exercise
impl Unpin for Exercise
impl UnsafeUnpin for Exercise
impl UnwindSafe for Exercise
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