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§
impl Copy for LaneType
impl Eq for LaneType
impl StructuralPartialEq for LaneType
Auto Trait Implementations§
impl Freeze for LaneType
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