Struct teddy::Teddy [] [src]

pub struct Teddy;

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.

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. If a match was found, then it is returned. Otherwise, None is returned.

Were we compiled 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.