pub struct ExpandedFIPSCode {
pub state: StateCode,
pub county: CountyCode,
pub tract: TractCode,
pub category: SettingCategoryCode,
pub id: IdCode,
pub data: DataCode,
}Expand description
A struct that holds an expanded version of a FIPSCode in which all fields are represented by
their associated numeric types.
It is up to the client code to ensure the field values are within range. See the module level docs for range constraints.
This struct is useful for converting raw data to/from a FIPSCode for temporary direct field access.
Fields§
§state: StateCode§county: CountyCode§tract: TractCode§category: SettingCategoryCode§id: IdCode§data: DataCodeImplementations§
Source§impl ExpandedFIPSCode
impl ExpandedFIPSCode
pub fn from_fips_code(fips_code: FIPSCode) -> Self
pub fn to_fips_code(&self) -> Result<FIPSCode, FIPSError>
Trait Implementations§
Source§impl Clone for ExpandedFIPSCode
impl Clone for ExpandedFIPSCode
Source§fn clone(&self) -> ExpandedFIPSCode
fn clone(&self) -> ExpandedFIPSCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExpandedFIPSCode
Source§impl Debug for ExpandedFIPSCode
impl Debug for ExpandedFIPSCode
Source§impl Display for ExpandedFIPSCode
impl Display for ExpandedFIPSCode
impl Eq for ExpandedFIPSCode
Source§impl Hash for ExpandedFIPSCode
impl Hash for ExpandedFIPSCode
Source§impl PartialEq for ExpandedFIPSCode
impl PartialEq for ExpandedFIPSCode
Source§fn eq(&self, other: &ExpandedFIPSCode) -> bool
fn eq(&self, other: &ExpandedFIPSCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExpandedFIPSCode
Auto Trait Implementations§
impl Freeze for ExpandedFIPSCode
impl RefUnwindSafe for ExpandedFIPSCode
impl Send for ExpandedFIPSCode
impl Sync for ExpandedFIPSCode
impl Unpin for ExpandedFIPSCode
impl UnsafeUnpin for ExpandedFIPSCode
impl UnwindSafe for ExpandedFIPSCode
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