fitness_coder 0.1.1

A fitness freak's toy.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use requestty::{Answer, Result, ListItem};

pub fn transform_answer_to_float(answer: Result<Answer>) -> f32 {
    answer.unwrap().try_into_float().unwrap() as f32
}

pub fn transform_answer_to_int(answer: Result<Answer>) -> u8 {
    answer.unwrap().try_into_int().unwrap() as u8
}

pub fn transform_answer_to_list_item(answer: Result<Answer>) -> ListItem {
    answer.unwrap().try_into_list_item().unwrap()
}