pub struct GuardVerdict { /* private fields */ }Expand description
The verdict of a per-lane RowJet::guard domain check.
A scalar jet (a crate::jet_scalar::JetScalar via the blanket impl) carries
ONE value, so it reports lanes == 1 and a one-bit mask. A lane tower
(Tower3Lane / Tower4Lane over f64x4) carries FOUR rows, so it reports
lanes == 4 and one mask bit per lane. The mask lets a batched program bail
exactly the offending 4-group to the scalar tail (any_failed),
or inspect which lanes tripped (lane_failed).
Implementations§
Source§impl GuardVerdict
impl GuardVerdict
Sourcepub fn lanes4(failed_mask: u8) -> Self
pub fn lanes4(failed_mask: u8) -> Self
A 4-lane verdict from a per-lane failure mask (bit i ⇒ lane i failed).
Sourcepub fn any_failed(self) -> bool
pub fn any_failed(self) -> bool
True iff at least one inspected lane failed the predicate.
Sourcepub fn lane_failed(self, i: usize) -> bool
pub fn lane_failed(self, i: usize) -> bool
True iff lane i failed the predicate.
Sourcepub fn failed_mask(self) -> u8
pub fn failed_mask(self) -> u8
The raw failure mask (bit i ⇒ lane i failed).
Trait Implementations§
Source§impl Clone for GuardVerdict
impl Clone for GuardVerdict
Source§fn clone(&self) -> GuardVerdict
fn clone(&self) -> GuardVerdict
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 GuardVerdict
Source§impl Debug for GuardVerdict
impl Debug for GuardVerdict
impl Eq for GuardVerdict
Source§impl PartialEq for GuardVerdict
impl PartialEq for GuardVerdict
Source§fn eq(&self, other: &GuardVerdict) -> bool
fn eq(&self, other: &GuardVerdict) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GuardVerdict
Auto Trait Implementations§
impl Freeze for GuardVerdict
impl RefUnwindSafe for GuardVerdict
impl Send for GuardVerdict
impl Sync for GuardVerdict
impl Unpin for GuardVerdict
impl UnsafeUnpin for GuardVerdict
impl UnwindSafe for GuardVerdict
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.