pub enum Width {
W8,
W16,
W32,
W64,
}Expand description
An integer width, in the four sizes the machine has instructions for.
Four rather than GCC’s five. mult_init[5] and divide[5] on x86-64 index by mode up to
TImode, and rucc lowers 128-bit arithmetic to calls or to pairs of 64-bit operations rather
than costing it as one instruction, so a fifth entry would be a number no pass could use
honestly.
Variants§
Implementations§
Trait Implementations§
impl Copy for Width
impl Eq for Width
Source§impl Ord for Width
impl Ord for Width
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Width
impl PartialOrd for Width
impl StructuralPartialEq for Width
Auto Trait Implementations§
impl Freeze for Width
impl RefUnwindSafe for Width
impl Send for Width
impl Sync for Width
impl Unpin for Width
impl UnsafeUnpin for Width
impl UnwindSafe for Width
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