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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)