pub enum ConvError {
BadDigit {
token: String,
ch: char,
base: u32,
},
EmptyToken,
NotACodepoint {
token: String,
},
NotAByte {
token: String,
},
BadEncoding {
format: String,
detail: String,
},
NoByteWidth {
format: String,
},
EndianNeedsBytes,
NotWholeBytes {
token: String,
base: u32,
},
RaggedWord {
len: usize,
word: usize,
},
TooWide {
token: String,
want: usize,
},
BadExpr {
text: String,
detail: ExprError,
},
NegativeResult {
text: String,
wher: String,
},
}Variants§
BadDigit
EmptyToken
NotACodepoint
NotAByte
BadEncoding
NoByteWidth
A byte order was asked for where no byte width can be worked out.
EndianNeedsBytes
A byte order was asked for on code points, which are not bytes.
NotWholeBytes
A token’s digits do not add up to a whole number of bytes.
RaggedWord
A run of bytes is not a whole number of --word sized words.
TooWide
A value needs more room than the word size allows.
BadExpr
An expression that could not be parsed or evaluated.
NegativeResult
A negative result reaching somewhere that has no way to say so.
Trait Implementations§
impl Eq for ConvError
Source§impl Error for ConvError
impl Error for ConvError
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 StructuralPartialEq for ConvError
Auto Trait Implementations§
impl Freeze for ConvError
impl RefUnwindSafe for ConvError
impl Send for ConvError
impl Sync for ConvError
impl Unpin for ConvError
impl UnsafeUnpin for ConvError
impl UnwindSafe for ConvError
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