Struct teddy::Teddy [] [src]

pub struct Teddy;

A SIMD accelerated multi substring searcher.

Methods

impl Teddy
[src]

Create a new Teddy multi substring matcher.

If a Teddy matcher could not be created (i.e., pats is empty or has an empty substring), then None is returned.

Warning

If teddy was built without SIMD support, then this method will always return None. See the README for more information on how to compile teddy with SIMD support.

Returns all of the substrings matched by this Teddy.

Returns the approximate size on the heap used by this matcher.

Searches haystack for the substrings in this Teddy. Returns the first match if one exists, and otherwise None.

Were we compiled with SIMD support? If not, Teddy::new will always just return None.

See the README for more information on how to compile teddy with SIMD support.

Trait Implementations

impl Clone for Teddy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Teddy
[src]

Formats the value using the given formatter.