pub enum DecoderCorrectionBatch {
Masks(CorrectionMaskBatch),
Packed(PackedObservableShotBatch),
}Expand description
Decoder output tagged with the only two correction layouts allowed by V4.
Variants§
Masks(CorrectionMaskBatch)
Packed(PackedObservableShotBatch)
Implementations§
Source§impl DecoderCorrectionBatch
impl DecoderCorrectionBatch
pub const fn format(&self) -> DetectorBatchFormat
pub const fn shots(&self) -> usize
pub fn validate_against( &self, observable_ids: &[i64], shots: usize, ) -> NpResult<()>
pub fn into_masks(self) -> NpResult<CorrectionMaskBatch>
pub fn into_packed(self) -> NpResult<PackedObservableShotBatch>
Trait Implementations§
Source§impl Clone for DecoderCorrectionBatch
impl Clone for DecoderCorrectionBatch
Source§impl Debug for DecoderCorrectionBatch
impl Debug for DecoderCorrectionBatch
Source§impl PartialEq for DecoderCorrectionBatch
impl PartialEq for DecoderCorrectionBatch
impl StructuralPartialEq for DecoderCorrectionBatch
Auto Trait Implementations§
impl Freeze for DecoderCorrectionBatch
impl RefUnwindSafe for DecoderCorrectionBatch
impl Send for DecoderCorrectionBatch
impl Sync for DecoderCorrectionBatch
impl Unpin for DecoderCorrectionBatch
impl UnsafeUnpin for DecoderCorrectionBatch
impl UnwindSafe for DecoderCorrectionBatch
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