#[non_exhaustive]pub enum DeterministicCborProfileError {
NegativeIntegerMustBeNegative,
}Expand description
Errors raised by deterministic-CBOR profile construction and validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NegativeIntegerMustBeNegative
Negative integer variants must remain strictly negative so each integer has exactly one semantic representation.
Trait Implementations§
impl Copy for DeterministicCborProfileError
impl Eq for DeterministicCborProfileError
Source§impl Error for DeterministicCborProfileError
impl Error for DeterministicCborProfileError
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 From<DeterministicCborProfileError> for DeterministicCborError
impl From<DeterministicCborProfileError> for DeterministicCborError
Source§fn from(error: DeterministicCborProfileError) -> Self
fn from(error: DeterministicCborProfileError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DeterministicCborProfileError
Auto Trait Implementations§
impl Freeze for DeterministicCborProfileError
impl RefUnwindSafe for DeterministicCborProfileError
impl Send for DeterministicCborProfileError
impl Sync for DeterministicCborProfileError
impl Unpin for DeterministicCborProfileError
impl UnsafeUnpin for DeterministicCborProfileError
impl UnwindSafe for DeterministicCborProfileError
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