[][src]Enum peepmatic_runtime::type::BitWidth

#[repr(u8)]pub enum BitWidth {
    Polymorphic,
    One,
    Eight,
    Sixteen,
    ThirtyTwo,
    SixtyFour,
    OneTwentyEight,
}

A bit width of a type.

Variants

Polymorphic

Polymorphic over bit width, with the same width as the root of the optimization's LHS and RHS.

One

A fixed bit width of 1.

Eight

A fixed bit width of 8.

Sixteen

A fixed bit width of 16.

ThirtyTwo

A fixed bit width of 32.

SixtyFour

A fixed bit width of 64.

OneTwentyEight

A fixed bit width of 128.

Implementations

impl BitWidth[src]

pub fn is_polymorphic(&self) -> bool[src]

Is this a polymorphic bit width?

pub fn fixed_width(&self) -> Option<u8>[src]

Get this width in bits, unless this is a polymorphic bit width.

Trait Implementations

impl Clone for BitWidth[src]

impl Copy for BitWidth[src]

impl Debug for BitWidth[src]

impl<'de> Deserialize<'de> for BitWidth[src]

impl Eq for BitWidth[src]

impl Hash for BitWidth[src]

impl PartialEq<BitWidth> for BitWidth[src]

impl Serialize for BitWidth[src]

impl StructuralEq for BitWidth[src]

impl StructuralPartialEq for BitWidth[src]

impl TryFrom<u8> for BitWidth[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.