pub struct TryFromMetricError(pub i32);Expand description
Error returned when an i32 value does not correspond to a valid Metric variant.
Tuple Fields§
§0: i32Trait Implementations§
Source§impl Clone for TryFromMetricError
impl Clone for TryFromMetricError
Source§fn clone(&self) -> TryFromMetricError
fn clone(&self) -> TryFromMetricError
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 TryFromMetricError
impl Debug for TryFromMetricError
Source§impl Display for TryFromMetricError
impl Display for TryFromMetricError
Source§impl Error for TryFromMetricError
impl Error for TryFromMetricError
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()
Source§impl PartialEq for TryFromMetricError
impl PartialEq for TryFromMetricError
impl Copy for TryFromMetricError
impl Eq for TryFromMetricError
impl StructuralPartialEq for TryFromMetricError
Auto Trait Implementations§
impl Freeze for TryFromMetricError
impl RefUnwindSafe for TryFromMetricError
impl Send for TryFromMetricError
impl Sync for TryFromMetricError
impl Unpin for TryFromMetricError
impl UnsafeUnpin for TryFromMetricError
impl UnwindSafe for TryFromMetricError
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