#[repr(u8)]pub enum State {
Show 27 variants
AC = 0,
AL = 1,
AM = 2,
AP = 3,
BA = 4,
CE = 5,
DF = 6,
ES = 7,
GO = 8,
MA = 9,
MG = 10,
MS = 11,
MT = 12,
PA = 13,
PB = 14,
PE = 15,
PI = 16,
PR = 17,
RJ = 18,
RN = 19,
RO = 20,
RR = 21,
RS = 22,
SC = 23,
SE = 24,
SP = 25,
TO = 26,
}Expand description
The 27 Brazilian federative units.
Variants§
AC = 0
AL = 1
AM = 2
AP = 3
BA = 4
CE = 5
DF = 6
ES = 7
GO = 8
MA = 9
MG = 10
MS = 11
MT = 12
PA = 13
PB = 14
PE = 15
PI = 16
PR = 17
RJ = 18
RN = 19
RO = 20
RR = 21
RS = 22
SC = 23
SE = 24
SP = 25
TO = 26
Implementations§
Source§impl State
impl State
Sourcepub fn abbreviation(self) -> &'static str
pub fn abbreviation(self) -> &'static str
Two-letter abbreviation (e.g. "SP", "RJ").
Sourcepub fn from_abbreviation(s: &str) -> Option<Self>
pub fn from_abbreviation(s: &str) -> Option<Self>
Parse from a two-letter abbreviation (case-insensitive).
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more