pub struct FIPSError { /* private fields */ }Implementations§
Source§impl FIPSError
impl FIPSError
pub fn new(parameter_name: &'static str, value: u64, min: u64, max: u64) -> Self
Sourcepub fn from_us_state(value: StateCode) -> Self
pub fn from_us_state(value: StateCode) -> Self
This one is unique in that it represents an error converting a (presumably valid) StateCode to a [USState]
variant. We lie a little bit and claim that values in 1..57 are valid when 3, 7, 14, 43, and 52 are not.
pub fn from_state_code(value: StateCode) -> Self
pub fn from_county_code(value: CountyCode) -> Self
pub fn from_tract_code(value: TractCode) -> Self
pub fn from_setting_category_code(value: SettingCategoryCode) -> Self
pub fn from_id_code(value: IdCode) -> Self
pub fn from_data_code(value: DataCode) -> Self
Trait Implementations§
impl Copy for FIPSError
impl Eq for FIPSError
Source§impl Error for FIPSError
impl Error for FIPSError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for FIPSError
Auto Trait Implementations§
impl Freeze for FIPSError
impl RefUnwindSafe for FIPSError
impl Send for FIPSError
impl Sync for FIPSError
impl Unpin for FIPSError
impl UnsafeUnpin for FIPSError
impl UnwindSafe for FIPSError
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