pub enum DataLayoutError {
BadString(RecordStringError),
BadAlign(AlignError),
BadAddressSpace(AddressSpaceError),
UnknownSpec(char),
EmptySpec,
BadEncoding,
BadInt(ParseIntError),
BadSpecParse(String),
BadAlignSpec(AlignSpecError),
}
Expand description
Potential errors when parsing an LLVM datalayout string.
Variants§
BadString(RecordStringError)
The datalayout string can’t be extracted from the record.
BadAlign(AlignError)
The specified alignment is invalid.
BadAddressSpace(AddressSpaceError)
The specified address space is invalid.
UnknownSpec(char)
An unknown specification was encountered.
EmptySpec
An empty specification was encountered.
BadEncoding
The datalayout string isn’t in ASCII.
BadInt(ParseIntError)
We couldn’t parse a field as an integer.
BadSpecParse(String)
We couldn’t parse an individual spec, for some reason.
BadAlignSpec(AlignSpecError)
We couldn’t parse an alignment spec.
Trait Implementations§
Source§impl Debug for DataLayoutError
impl Debug for DataLayoutError
Source§impl Display for DataLayoutError
impl Display for DataLayoutError
Source§impl Error for DataLayoutError
impl Error for DataLayoutError
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<AddressSpaceError> for DataLayoutError
impl From<AddressSpaceError> for DataLayoutError
Source§fn from(source: AddressSpaceError) -> Self
fn from(source: AddressSpaceError) -> Self
Converts to this type from the input type.
Source§impl From<AlignError> for DataLayoutError
impl From<AlignError> for DataLayoutError
Source§fn from(source: AlignError) -> Self
fn from(source: AlignError) -> Self
Converts to this type from the input type.
Source§impl From<AlignSpecError> for DataLayoutError
impl From<AlignSpecError> for DataLayoutError
Source§fn from(source: AlignSpecError) -> Self
fn from(source: AlignSpecError) -> Self
Converts to this type from the input type.
Source§impl From<DataLayoutError> for ModuleError
impl From<DataLayoutError> for ModuleError
Source§fn from(source: DataLayoutError) -> Self
fn from(source: DataLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<DataLayoutError> for RecordMapError
impl From<DataLayoutError> for RecordMapError
Source§fn from(source: DataLayoutError) -> Self
fn from(source: DataLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for DataLayoutError
impl From<ParseIntError> for DataLayoutError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<RecordStringError> for DataLayoutError
impl From<RecordStringError> for DataLayoutError
Source§fn from(source: RecordStringError) -> Self
fn from(source: RecordStringError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DataLayoutError
impl RefUnwindSafe for DataLayoutError
impl Send for DataLayoutError
impl Sync for DataLayoutError
impl Unpin for DataLayoutError
impl UnwindSafe for DataLayoutError
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