pub trait Builder {
type Err;
fn for_platform<T: Mode>(
&self,
platform: Option<&PlatformRef>
) -> Result<Database<T>, Self::Err>;
fn build<T: Mode>(&self) -> Result<Database<T>, Self::Err> { ... }
}
Expand description
The regular expression pattern database builder.
Required Associated Types
Required Methods
sourcefn for_platform<T: Mode>(
&self,
platform: Option<&PlatformRef>
) -> Result<Database<T>, Self::Err>
fn for_platform<T: Mode>(
&self,
platform: Option<&PlatformRef>
) -> Result<Database<T>, Self::Err>
Build an expression is compiled into a Hyperscan database for a target platform.