pub enum DetectorBatch {
Masks {
detector_ids: Vec<i64>,
masks: Vec<Mask>,
shots: usize,
},
Packed {
detector_ids: Vec<i64>,
data: Vec<u8>,
shots: usize,
detector_byte_count: usize,
},
Events {
detector_ids: Vec<i64>,
offsets: Vec<usize>,
events: Vec<usize>,
shots: usize,
},
}Expand description
Owned detector syndrome storage used when a producer and decoder negotiate a layout.
Variants§
Implementations§
Source§impl DetectorBatch
impl DetectorBatch
Trait Implementations§
Source§impl Clone for DetectorBatch
impl Clone for DetectorBatch
Source§impl Debug for DetectorBatch
impl Debug for DetectorBatch
Source§impl PartialEq for DetectorBatch
impl PartialEq for DetectorBatch
impl StructuralPartialEq for DetectorBatch
Auto Trait Implementations§
impl Freeze for DetectorBatch
impl RefUnwindSafe for DetectorBatch
impl Send for DetectorBatch
impl Sync for DetectorBatch
impl Unpin for DetectorBatch
impl UnsafeUnpin for DetectorBatch
impl UnwindSafe for DetectorBatch
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