Skip to main content

NativeDecoderWorker

Trait NativeDecoderWorker 

Source
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§

Source

fn name(&self) -> &str

Source

fn detector_ids(&self) -> &[i64]

Ordered detector input layout. Detector ids must be unique.

Source

fn observable_ids(&self) -> &[i64]

Source

fn batch_formats(&self) -> &[DetectorBatchFormat]

Stable, non-empty, duplicate-free format preference list.

Source

fn decode_batch( &mut self, detectors: DetectorBatchView<'_>, ) -> NpResult<DecoderCorrectionBatch>

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§