Struct UnknownValue
pub struct UnknownValue(pub u32);Expand description
Error for a raw value that matches no enum variant.
Tuple Fields§
§0: u32Trait Implementations§
§impl Clone for UnknownValue
impl Clone for UnknownValue
§fn clone(&self) -> UnknownValue
fn clone(&self) -> UnknownValue
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 UnknownValue
§impl Debug for UnknownValue
impl Debug for UnknownValue
§impl Display for UnknownValue
impl Display for UnknownValue
impl Eq for UnknownValue
§impl Error for UnknownValue
impl Error for UnknownValue
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 PartialEq for UnknownValue
impl PartialEq for UnknownValue
impl StructuralPartialEq for UnknownValue
Auto Trait Implementations§
impl Freeze for UnknownValue
impl RefUnwindSafe for UnknownValue
impl Send for UnknownValue
impl Sync for UnknownValue
impl Unpin for UnknownValue
impl UnsafeUnpin for UnknownValue
impl UnwindSafe for UnknownValue
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