pubtraitAbbreviation{fnabbreviation(&self)->&'staticstr;}/// A trait for parsing an entity (typically) from a country code abbreviation.
/// This can be ISO 3166 Alpha-2 (e.g. "US") or Alpha-3 (e.g. "USA"), or any
/// other recognized short code as needed.
pubtraitTryFromAbbreviation: Sized {/// The associated error type returned upon failure.
typeError;/// Attempt to convert an abbreviation into `Self`.
fntry_from_abbreviation(abbr:&str)->Result<Self, Self::Error>;}#[derive(Debug)]pubenumTryFromAbbreviationError{/// The given abbreviation is not recognized in this region.
InvalidAbbreviation,}