[][src]Enum cranelift_codegen_meta::cdsl::types::LaneType

pub(crate) enum LaneType {
    Bool(Bool),
    Float(Float),
    Int(Int),
}

A concrete scalar type that can appear as a vector lane too.

Variants

Bool(Bool)
Float(Float)
Int(Int)

Methods

impl LaneType[src]

pub fn doc(self) -> String[src]

Return a string containing the documentation comment for this lane type.

pub fn lane_bits(self) -> u64[src]

Return the number of bits in a lane.

pub fn number(self) -> u8[src]

Find the unique number associated with this lane type.

pub fn bool_from_bits(num_bits: u16) -> LaneType[src]

pub fn int_from_bits(num_bits: u16) -> LaneType[src]

pub fn float_from_bits(num_bits: u16) -> LaneType[src]

pub fn by(self, lanes: u16) -> ValueType[src]

pub fn is_float(self) -> bool[src]

pub fn is_int(self) -> bool[src]

Trait Implementations

impl Clone for LaneType[src]

impl Copy for LaneType[src]

impl Debug for LaneType[src]

impl Display for LaneType[src]

impl Eq for LaneType[src]

impl From<Bool> for LaneType[src]

Create a LaneType from a given bool variant.

impl From<Float> for LaneType[src]

Create a LaneType from a given float variant.

impl From<Int> for LaneType[src]

Create a LaneType from a given int variant.

impl From<LaneType> for BindParameter[src]

impl From<LaneType> for ValueType[src]

Create a ValueType from a given lane type.

impl Hash for LaneType[src]

impl PartialEq<LaneType> for LaneType[src]

impl StructuralEq for LaneType[src]

impl StructuralPartialEq for LaneType[src]

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> 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> ToString for T where
    T: Display + ?Sized
[src]

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.