pub struct DecoderDecision {
pub key: DecodeKey,
pub raw: bool,
pub flip: bool,
pub accepted: bool,
pub confidence_gap: f64,
pub measurements_ready_at: Option<f64>,
pub ready_at: f64,
}Expand description
One inspectable mock-decoder result.
Fields§
§key: DecodeKeyObservable and attempt sharing this causal solve.
raw: boolRaw observable parity supplied to the decoder.
flip: boolSynthetic residual decoder error. XOR this with raw.
accepted: boolSampled confidence-policy acceptance; diagnostic, not a retry trigger.
confidence_gap: f64Sampled confidence GAP in [0, 1].
measurements_ready_at: Option<f64>Time of the last contributing measurement.
ready_at: f64Time at which this decision may be consumed.
Trait Implementations§
Source§impl Clone for DecoderDecision
impl Clone for DecoderDecision
Source§fn clone(&self) -> DecoderDecision
fn clone(&self) -> DecoderDecision
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 DecoderDecision
Source§impl Debug for DecoderDecision
impl Debug for DecoderDecision
Source§impl<'de> Deserialize<'de> for DecoderDecision
impl<'de> Deserialize<'de> for DecoderDecision
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DecoderDecision
impl PartialEq for DecoderDecision
Source§impl Serialize for DecoderDecision
impl Serialize for DecoderDecision
impl StructuralPartialEq for DecoderDecision
Auto Trait Implementations§
impl Freeze for DecoderDecision
impl RefUnwindSafe for DecoderDecision
impl Send for DecoderDecision
impl Sync for DecoderDecision
impl Unpin for DecoderDecision
impl UnsafeUnpin for DecoderDecision
impl UnwindSafe for DecoderDecision
Blanket Implementations§
§impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
fn assign_index(&mut self, index: usize, to: bool)
fn negate_index(&mut self, index: usize)
fn clear_bits(&mut self)
fn assign_random(
&mut self,
bit_count: usize,
random_number_generator: &mut impl RngExt,
)where
BorrowedSelf: BitLength,
§impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
fn assign(&mut self, other: &Other)
fn bitxor_assign(&mut self, other: &Other)
fn bitand_assign(&mut self, other: &Other)
fn bitor_assign(&mut self, other: &Other)
§impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
§impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
fn index(&self, index: usize) -> bool
fn weight(&self) -> usize
fn parity(&self) -> bool
fn is_zero(&self) -> bool
fn is_unit(&self, index: usize) -> bool
fn support<'a>(&'a self) -> impl SortedIteratorwhere
BorrowedSelf: 'a,
fn max_support(&self) -> Option<usize>
fn min_support(&self) -> Option<usize>
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