Enum llvm_support::align::AlignSpecError [−][src]
pub enum AlignSpecError {
BadTypeWidth(AlignedTypeWidthError),
AlignPref(Align, Align),
AbiAlignTooLarge(Align),
Parse(String),
ParseAlign(AlignError),
BadInt(ParseIntError),
BadAddressSpace(AddressSpaceError),
}
Expand description
Errors that can occur when constructing a TypeAlignSpec
or PointerAlignSpec
.
Variants
BadTypeWidth(AlignedTypeWidthError)
The underlying type being specified has a bad width.
Tuple Fields of BadTypeWidth
The supplied preferred alignment isn’t greater than or equal to the ABI minimum
AbiAlignTooLarge(Align)
The supplied ABI alignment is too large.
Tuple Fields of AbiAlignTooLarge
0: Align
Parse(String)
We’re parsing this alignment spec from a string, and it’s malformed in some way.
Tuple Fields of Parse
0: String
ParseAlign(AlignError)
We’re parsing this alignment spec from a string, and one of its inner alignments is malformed in some way.
Tuple Fields of ParseAlign
0: AlignError
BadInt(ParseIntError)
We’re parsing this alignment spec from a string, and one of its fields can’t be converted into an integer.
Tuple Fields of BadInt
BadAddressSpace(AddressSpaceError)
The supplied address space is invalid.
Tuple Fields of BadAddressSpace
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.