update blood_types

This commit is contained in:
davidrobert99 2022-05-02 11:14:19 +01:00
parent 4fcef1eed3
commit c827abed4c
1 changed files with 1 additions and 7 deletions

View File

@ -8,7 +8,7 @@ Start by copying the data representation of the blood types:
- Create the enum `Antigen` that has 4 possibilities: A, B, O and AB And the enum `RhFactor` that has two possible values: Positive and Negative
- After, copy the struct `BloodType` that contains two fields with the names antigen and rh_factor
- After, create the struct `BloodType` that contains two fields with the names antigen and rh_factor
- To provide a simple way to create blood types implement the trait FromStr for BloodType (which will allow us to use the `parse` method and the associated function from_str, so we can do:
@ -53,12 +53,6 @@ use std::cmp::{Ord, Ordering};
use std::str::FromStr;
impl FromStr for Antigen {
}
impl FromStr for RhFactor {
}
impl Ord for BloodType {
}