pub trait NativeDecoderWorker: Send {
// Required methods
fn name(&self) -> &str;
fn detector_ids(&self) -> &[i64];
fn observable_ids(&self) -> &[i64];
fn batch_formats(&self) -> &[DetectorBatchFormat];
fn decode_batch(
&mut self,
detectors: DetectorBatchView<'_>,
) -> NpResult<DecoderCorrectionBatch>;
// Provided method
fn decode_batch_checked(
&mut self,
detectors: DetectorBatchView<'_>,
) -> NpResult<DecoderCorrectionBatch> { ... }
}Required Methods§
fn name(&self) -> &str
Sourcefn detector_ids(&self) -> &[i64]
fn detector_ids(&self) -> &[i64]
Ordered detector input layout. Detector ids must be unique.
fn observable_ids(&self) -> &[i64]
Sourcefn batch_formats(&self) -> &[DetectorBatchFormat]
fn batch_formats(&self) -> &[DetectorBatchFormat]
Stable, non-empty, duplicate-free format preference list.
fn decode_batch( &mut self, detectors: DetectorBatchView<'_>, ) -> NpResult<DecoderCorrectionBatch>
Provided Methods§
fn decode_batch_checked( &mut self, detectors: DetectorBatchView<'_>, ) -> NpResult<DecoderCorrectionBatch>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".