Trait PatternIndex

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§