]>
git.proxmox.com Git - cargo.git/blob - vendor/aho-corasick/src/packed/teddy/mod.rs
1 #[cfg(target_arch = "x86_64")]
2 pub use crate::packed
::teddy
::compile
::Builder
;
3 #[cfg(not(target_arch = "x86_64"))]
4 pub use crate::packed
::teddy
::fallback
::Builder
;
5 #[cfg(not(target_arch = "x86_64"))]
6 pub use crate::packed
::teddy
::fallback
::Teddy
;
7 #[cfg(target_arch = "x86_64")]
8 pub use crate::packed
::teddy
::runtime
::Teddy
;
10 #[cfg(target_arch = "x86_64")]
12 #[cfg(target_arch = "x86_64")]
15 #[cfg(not(target_arch = "x86_64"))]
17 use crate::packed
::pattern
::Patterns
;
20 #[derive(Clone, Debug, Default)]
21 pub struct Builder(());
24 pub fn new() -> Builder
{
28 pub fn build(&self, _
: &Patterns
) -> Option
<Teddy
> {
32 pub fn fat(&mut self, _
: Option
<bool
>) -> &mut Builder
{
36 pub fn avx(&mut self, _
: Option
<bool
>) -> &mut Builder
{
41 #[derive(Clone, Debug)]
54 pub fn minimum_len(&self) -> usize {
58 pub fn heap_bytes(&self) -> usize {