pub enum BitcodeError {
InvalidMagic,
TruncatedInput,
UnexpectedEof,
UnsupportedRecord(u32),
InvalidType,
ParseError(String),
}Expand description
Error type for bitcode reading and writing.
Variants§
InvalidMagic
Magic bytes did not match the LRIR format header.
TruncatedInput
Input ended before a field could be fully read.
UnexpectedEof
Unexpected end-of-file inside a structured record.
UnsupportedRecord(u32)
A record type tag was not recognised.
InvalidType
A type tag was not a recognised TypeTag value.
ParseError(String)
A general parse error with a description.
Trait Implementations§
Source§impl Debug for BitcodeError
impl Debug for BitcodeError
Source§impl Display for BitcodeError
impl Display for BitcodeError
Source§impl Error for BitcodeError
impl Error for BitcodeError
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()
Auto Trait Implementations§
impl Freeze for BitcodeError
impl RefUnwindSafe for BitcodeError
impl Send for BitcodeError
impl Sync for BitcodeError
impl Unpin for BitcodeError
impl UnsafeUnpin for BitcodeError
impl UnwindSafe for BitcodeError
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