fn from_str(s: &str) -> Result<Self, Self::Err> {
        if let Ok(common) = CommonField::from_str(s) {
            Ok(Self::Unit(DumpField::Common(common)))
        } else if let Ok(agg) = A::from_str(s) {
            Ok(Self::Agg(agg))
        } else if let Ok(field_id) = F::from_str(s) {
            Ok(Self::Unit(DumpField::FieldId(field_id)))
        } else {
            bail!("Variant not found: {}", s);
        }
    }
/// When parsing command line options into DumpOptionField, priority order
/// is CommonField, AggField, and then FieldId.
When parsing command line options into DumpOptionField, priority order
is CommonField, AggField, and then FieldId.
When parsing command line options into DumpOptionField priority order is CommonField AggField and then FieldId .
fn from_str(s: &str) -> Result<Self, Self::Err> {
        if let Ok(common) = CommonField::from_str(s) {
            Ok(Self::Unit(DumpField::Common(common)))
        } else if let Ok(agg) = A::from_str(s) {
            Ok(Self::Agg(agg))
        } else if let Ok(field_id) = F::from_str(s) {
            Ok(Self::Unit(DumpField::FieldId(field_id)))
        } else {
            bail!("Variant not found: {}", s);
        }
    }
fn from_str ( s : & str ) -> Result < Self , Self :: Err > { if let Ok ( common ) = CommonField :: from_str ( s ) { Ok ( Self :: Unit ( DumpField :: Common ( common ) ) ) } else if let Ok ( agg ) = A :: from_str ( s ) { Ok ( Self :: Agg ( agg ) ) } else if let Ok ( field_id ) = F :: from_str ( s ) { Ok ( Self :: Unit ( DumpField :: FieldId ( field_id ) ) ) } else { bail ! ( " " s ) ; } }
When parsing command line options into DumpOptionField, priority order
is CommonField, AggField, and then FieldId.
When parsing command line options into DumpOptionField priority order is CommonField AggField and then FieldId .
s
&str
s
&str