From c827abed4c46ced5b7e141df9d2f7d16a8c03873 Mon Sep 17 00:00:00 2001 From: davidrobert99 Date: Mon, 2 May 2022 11:14:19 +0100 Subject: [PATCH] update blood_types --- subjects/blood_types/README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/subjects/blood_types/README.md b/subjects/blood_types/README.md index 0c469c6d..35d1eb76 100644 --- a/subjects/blood_types/README.md +++ b/subjects/blood_types/README.md @@ -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 { }