pub struct SegmentElement<Hart>where
Hart: VectorHartConfig,{ /* private fields */ }Expand description
Body element of a VRegSegmentGroup, see VRegSegmentGroup::elements()
Implementations§
Source§impl<Hart> SegmentElement<Hart>where
Hart: VectorHartConfig,
impl<Hart> SegmentElement<Hart>where
Hart: VectorHartConfig,
Sourcepub fn fields(self) -> impl Iterator<Item = SegmentField<Hart>>
pub fn fields(self) -> impl Iterator<Item = SegmentField<Hart>>
All fields of this element in order
Sourcepub fn read_fields(self, vregs: &VectorRegisterFile<Hart>) -> [u64; 8]
pub fn read_fields(self, vregs: &VectorRegisterFile<Hart>) -> [u64; 8]
Read all fields of this element, zero-extended, into the first nf entries, the rest are
zero
Sourcepub fn write_fields(self, vregs: &mut VectorRegisterFile<Hart>, fields: &[u64])
pub fn write_fields(self, vregs: &mut VectorRegisterFile<Hart>, fields: &[u64])
Write the low bits of fields[f] into field f of this element, for each field that
exists, the rest of fields is ignored
Trait Implementations§
Source§impl<Hart> Clone for SegmentElement<Hart>where
Hart: VectorHartConfig + Clone,
impl<Hart> Clone for SegmentElement<Hart>where
Hart: VectorHartConfig + Clone,
Source§fn clone(&self) -> SegmentElement<Hart>
fn clone(&self) -> SegmentElement<Hart>
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<Hart> Copy for SegmentElement<Hart>where
Hart: VectorHartConfig + Copy,
Auto Trait Implementations§
impl<Hart> Freeze for SegmentElement<Hart>where
VRegSegmentGroup<Hart>: Freeze,
impl<Hart> RefUnwindSafe for SegmentElement<Hart>where
VRegSegmentGroup<Hart>: RefUnwindSafe,
impl<Hart> Send for SegmentElement<Hart>where
VRegSegmentGroup<Hart>: Send,
impl<Hart> Sync for SegmentElement<Hart>where
VRegSegmentGroup<Hart>: Sync,
impl<Hart> Unpin for SegmentElement<Hart>where
VRegSegmentGroup<Hart>: Unpin,
impl<Hart> UnsafeUnpin for SegmentElement<Hart>where
VRegSegmentGroup<Hart>: UnsafeUnpin,
impl<Hart> UnwindSafe for SegmentElement<Hart>where
VRegSegmentGroup<Hart>: UnwindSafe,
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