Enum cranelift_codegen_meta::cdsl::types::LaneType
source · pub(crate) enum LaneType {
Float(Float),
Int(Int),
}
Expand description
A concrete scalar type that can appear as a vector lane too.
Variants§
Implementations§
source§impl LaneType
impl LaneType
sourcepub fn doc(self) -> String
pub fn doc(self) -> String
Return a string containing the documentation comment for this lane type.
pub fn int_from_bits(num_bits: u16) -> LaneType
pub fn float_from_bits(num_bits: u16) -> LaneType
pub fn by(self, lanes: u16) -> ValueType
pub fn to_dynamic(self, lanes: u16) -> ValueType
Trait Implementations§
source§impl PartialEq<LaneType> for LaneType
impl PartialEq<LaneType> for LaneType
impl Copy for LaneType
impl Eq for LaneType
impl StructuralEq for LaneType
impl StructuralPartialEq for LaneType
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§
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