pub struct VectorType(/* private fields */);Expand description
The layout of VTYPE.
vsew and vlmul are left as raw values: most of their encodings are
reserved, so a bitfield_repr enum could not represent what the hardware
may actually report.
Implementations§
Source§impl VectorType
impl VectorType
Sourcepub const RSVD1_MASK: u64
pub const RSVD1_MASK: u64
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u64
pub const RSVD0_MASK: u64
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u64
pub const DEFAULT: u64
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const VILL_SHIFT: usize = 63
pub const VILL_SHIFT: usize = 63
Bit shift (i.e., the low bit) of vill.
Sourcepub const VSEW_SHIFT: usize = 3
pub const VSEW_SHIFT: usize = 3
Bit shift (i.e., the low bit) of vsew.
Sourcepub const VLMUL_MASK: u64
pub const VLMUL_MASK: u64
Unshifted bitmask of vlmul.
Sourcepub const VLMUL_SHIFT: usize = 0
pub const VLMUL_SHIFT: usize = 0
Bit shift (i.e., the low bit) of vlmul.
Sourcepub const FIELDS: [FieldMetadata<u64>; 5]
pub const FIELDS: [FieldMetadata<u64>; 5]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new instance with reserved-as-1 bits set and
all other bits zeroed (i.e., with a value of
Self::RSVD1_MASK).
pub const fn bits(self) -> u64
Trait Implementations§
Source§impl Binary for VectorType
impl Binary for VectorType
Source§impl Clone for VectorType
impl Clone for VectorType
Source§fn clone(&self) -> VectorType
fn clone(&self) -> VectorType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VectorType
Source§impl Debug for VectorType
impl Debug for VectorType
Source§impl Default for VectorType
impl Default for VectorType
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for VectorType
Source§impl From<VectorType> for u64
impl From<VectorType> for u64
Source§fn from(value: VectorType) -> Self
fn from(value: VectorType) -> Self
Converts to this type from the input type.
Source§impl From<u64> for VectorType
impl From<u64> for VectorType
Source§impl IntoIterator for VectorType
impl IntoIterator for VectorType
Source§impl<'a> IntoIterator for &'a VectorType
impl<'a> IntoIterator for &'a VectorType
Source§impl LowerHex for VectorType
impl LowerHex for VectorType
Source§impl Octal for VectorType
impl Octal for VectorType
Source§impl PartialEq for VectorType
impl PartialEq for VectorType
impl StructuralPartialEq for VectorType
Auto Trait Implementations§
impl Freeze for VectorType
impl RefUnwindSafe for VectorType
impl Send for VectorType
impl Sync for VectorType
impl Unpin for VectorType
impl UnsafeUnpin for VectorType
impl UnwindSafe for VectorType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)