Struct llvm_support::align::Align [−][src]
pub struct Align(_);
Expand description
A size efficient, opaque representation of bytewise alignment.
See Alignment.h
for LLVM’s corresponding structures.
Implementations
Create an Align
from the given shift value, returning an error if the requested
shift is invalid.
Create an Align
from the given byte alignment value, returning an error if the requested
shift is invalid.
Create an Align
from the given bit alignment value, returning an error if the requested
shift is invalid.
Return this alignment’s shift value, i.e. the power of two for the alignment.
Return this alignment as a byte-granular alignment.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Align
impl UnwindSafe for Align
Blanket Implementations
Mutably borrows from an owned value. Read more