pub enum ElementSize {
B,
H,
S,
D,
}Expand description
The element size of an AArch64 vector lane access (V0.S[0]).
Variants§
B
Byte (.B) — 16 lanes.
H
Half-word (.H) — 8 lanes.
S
Single-word (.S) — 4 lanes.
D
Double-word (.D) — 2 lanes.
Implementations§
Source§impl ElementSize
impl ElementSize
Sourcepub fn from_lower(s: &str) -> Option<Self>
pub fn from_lower(s: &str) -> Option<Self>
Parse a lane-size suffix. Input must already be lowercase.
Sourcepub fn lane_count(self) -> u8
pub fn lane_count(self) -> u8
Number of lanes of this size in a 128-bit vector register.
Trait Implementations§
Source§impl Clone for ElementSize
impl Clone for ElementSize
Source§fn clone(&self) -> ElementSize
fn clone(&self) -> ElementSize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ElementSize
Source§impl Debug for ElementSize
impl Debug for ElementSize
Source§impl Display for ElementSize
impl Display for ElementSize
impl Eq for ElementSize
Source§impl PartialEq for ElementSize
impl PartialEq for ElementSize
impl StructuralPartialEq for ElementSize
Auto Trait Implementations§
impl Freeze for ElementSize
impl RefUnwindSafe for ElementSize
impl Send for ElementSize
impl Sync for ElementSize
impl Unpin for ElementSize
impl UnsafeUnpin for ElementSize
impl UnwindSafe for ElementSize
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