pub enum QuantCodecError {
EmptyIdentifier {
type_name: &'static str,
},
IdentifierWhitespace {
type_name: &'static str,
},
InvalidShape {
reason: String,
},
InvalidTokenSpan {
start: u64,
end: u64,
},
ShapeMismatch {
reason: String,
},
IntegerOverflow {
context: &'static str,
},
}Variants§
Trait Implementations§
Source§impl Clone for QuantCodecError
impl Clone for QuantCodecError
Source§fn clone(&self) -> QuantCodecError
fn clone(&self) -> QuantCodecError
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 moreSource§impl Debug for QuantCodecError
impl Debug for QuantCodecError
Source§impl Display for QuantCodecError
impl Display for QuantCodecError
Source§impl Error for QuantCodecError
impl Error for QuantCodecError
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 QuantCodecError
impl PartialEq for QuantCodecError
Source§fn eq(&self, other: &QuantCodecError) -> bool
fn eq(&self, other: &QuantCodecError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for QuantCodecError
impl StructuralPartialEq for QuantCodecError
Auto Trait Implementations§
impl Freeze for QuantCodecError
impl RefUnwindSafe for QuantCodecError
impl Send for QuantCodecError
impl Sync for QuantCodecError
impl Unpin for QuantCodecError
impl UnsafeUnpin for QuantCodecError
impl UnwindSafe for QuantCodecError
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