pub trait PatternIndex: Sized {
    type Option;
    type BuildError: Error;

    // Required methods
    fn new(
        concatenated_sequence: Vec<u8>,
        option: Self::Option
    ) -> Result<Self, Self::BuildError>;
    fn get_sorted_positions(&self, pattern: &[u8]) -> Vec<u32>;
}

Required Associated Types§

Required Methods§

source

fn new( concatenated_sequence: Vec<u8>, option: Self::Option ) -> Result<Self, Self::BuildError>

Create a new PatternIndex instance with the given concatenated sequence.

source

fn get_sorted_positions(&self, pattern: &[u8]) -> Vec<u32>

Get sorted positions of the given pattern in concatenated sequence.

Object Safety§

This trait is not object safe.

Implementors§