MCPcopy Create free account
hub / github.com/alexfertel/rust-algorithms / match_pattern

Function match_pattern

src/string/z_algorithm.rs:47–49  ·  view source on GitHub ↗
(input: &[T], pattern: &[T])

Source from the content-addressed store, hash-verified

45}
46
47pub fn match_pattern<T: Eq>(input: &[T], pattern: &[T]) -> Vec<usize> {
48 match_with_z_array(input, pattern, 0, true)
49}
50
51#[cfg(test)]
52mod tests {

Callers

nothing calls this directly

Calls 1

match_with_z_arrayFunction · 0.85

Tested by

no test coverage detected