Enum llvm_support::align::AlignSpecError[][src]

pub enum AlignSpecError {
    BadTypeWidth(AlignedTypeWidthError),
    AlignPref(AlignAlign),
    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

0: AlignedTypeWidthError
AlignPref(AlignAlign)

The supplied preferred alignment isn’t greater than or equal to the ABI minimum

Tuple Fields of AlignPref

0: Align1: Align
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

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

0: ParseIntError
BadAddressSpace(AddressSpaceError)

The supplied address space is invalid.

Tuple Fields of BadAddressSpace

0: AddressSpaceError

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.