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§
type Option
type BuildError: Error
Required Methods§
Sourcefn new(
concatenated_sequence: Vec<u8>,
option: Self::Option,
) -> Result<Self, Self::BuildError>
fn new( concatenated_sequence: Vec<u8>, option: Self::Option, ) -> Result<Self, Self::BuildError>
Create a new PatternIndex
instance with the given concatenated sequence.
Sourcefn get_sorted_positions(&self, pattern: &[u8]) -> Vec<u32>
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.