[−][src]Enum cranelift_codegen_meta::cdsl::types::LaneType
A concrete scalar type that can appear as a vector lane too.
Variants
Bool(Bool)
Float(Float)
Int(Int)
Implementations
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<LaneType> for LaneType
[src]
impl StructuralEq for LaneType
[src]
impl StructuralPartialEq for LaneType
[src]
Auto Trait Implementations
impl RefUnwindSafe for LaneType
impl Send for LaneType
impl Sync for LaneType
impl Unpin for LaneType
impl UnwindSafe for LaneType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,