fn parse_str(value: &str) -> Result<Self, EpochParseError> {
        match value {
            "I" => Ok(Epoch::I),
            "II" => Ok(Epoch::II),
            "IIa" => Ok(Epoch::IIa),
            "IIb" => Ok(Epoch::IIb),
            "III" => Ok(Epoch::III),
            "IIIa" => Ok(Epoch::IIIa),
            "IIIb" => Ok(Epoch::IIIb),
            "IV" => Ok(Epoch::IV),
            "IVa" => Ok(Epoch::IVa),
            "IVb" => Ok(Epoch::IVb),
            "V" => Ok(Epoch::V),
            "Va" => Ok(Epoch::Va),
            "Vb" => Ok(Epoch::Vb),
            "Vm" => Ok(Epoch::Vm),
            "VI" => Ok(Epoch::VI),
            _ => Err(EpochParseError::InvalidValue),
        }
    }
// Helper method to parse just the simple value
Helper method to parse just the simple value
Helper method to parse just the simple value
fn parse_str(value: &str) -> Result<Self, EpochParseError> {
        match value {
            "I" => Ok(Epoch::I),
            "II" => Ok(Epoch::II),
            "IIa" => Ok(Epoch::IIa),
            "IIb" => Ok(Epoch::IIb),
            "III" => Ok(Epoch::III),
            "IIIa" => Ok(Epoch::IIIa),
            "IIIb" => Ok(Epoch::IIIb),
            "IV" => Ok(Epoch::IV),
            "IVa" => Ok(Epoch::IVa),
            "IVb" => Ok(Epoch::IVb),
            "V" => Ok(Epoch::V),
            "Va" => Ok(Epoch::Va),
            "Vb" => Ok(Epoch::Vb),
            "Vm" => Ok(Epoch::Vm),
            "VI" => Ok(Epoch::VI),
            _ => Err(EpochParseError::InvalidValue),
        }
    }
fn parse_str ( value : & str ) -> Result < Self , EpochParseError > { match value { " " => Ok ( Epoch :: I ) , " " => Ok ( Epoch :: II ) , " " => Ok ( Epoch :: IIa ) , " " => Ok ( Epoch :: IIb ) , " " => Ok ( Epoch :: III ) , " " => Ok ( Epoch :: IIIa ) , " " => Ok ( Epoch :: IIIb ) , " " => Ok ( Epoch :: IV ) , " " => Ok ( Epoch :: IVa ) , " " => Ok ( Epoch :: IVb ) , " " => Ok ( Epoch :: V ) , " " => Ok ( Epoch :: Va ) , " " => Ok ( Epoch :: Vb ) , " " => Ok ( Epoch :: Vm ) , " " => Ok ( Epoch :: VI ) , _ => Err ( EpochParseError :: InvalidValue ) , } }
Helper method to parse just the simple value
Helper method to parse just the simple value
value
&str