pub struct OutOfRange {
pub field: &'static str,
}Expand description
Error returned by the generated try_with_* / try_set_* accessors when a
physical value can’t be represented in a scaled field’s bit width.
The plain with_* / set_* accessors saturate such values instead of
failing; use the try_* variants when you need to detect the condition.
Fields§
§field: &'static strThe field (snake_case accessor name) that rejected the value.
Trait Implementations§
Source§impl Clone for OutOfRange
impl Clone for OutOfRange
Source§fn clone(&self) -> OutOfRange
fn clone(&self) -> OutOfRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutOfRange
impl Debug for OutOfRange
Source§impl PartialEq for OutOfRange
impl PartialEq for OutOfRange
impl Copy for OutOfRange
impl Eq for OutOfRange
impl StructuralPartialEq for OutOfRange
Auto Trait Implementations§
impl Freeze for OutOfRange
impl RefUnwindSafe for OutOfRange
impl Send for OutOfRange
impl Sync for OutOfRange
impl Unpin for OutOfRange
impl UnwindSafe for OutOfRange
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