From 64106c4d3d4ddba8c7bc2af75376e6d3d3d75601 Mon Sep 17 00:00:00 2001 From: Date: Mon, 29 Jun 2015 20:16:15 +0000 Subject: Update documentation --- aho_corasick/trait.Transitions.html | 125 ++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 aho_corasick/trait.Transitions.html (limited to 'aho_corasick/trait.Transitions.html') diff --git a/aho_corasick/trait.Transitions.html b/aho_corasick/trait.Transitions.html new file mode 100644 index 0000000..f5eac83 --- /dev/null +++ b/aho_corasick/trait.Transitions.html @@ -0,0 +1,125 @@ + + + + + + + + + + aho_corasick::Transitions - Rust + + + + + + + + + + + + + + + +
+

Trait aho_corasick::Transitions + + [] + + [src]

+
pub trait Transitions {
+    fn new(depth: u32) -> Self;
+    fn goto(&self, alpha: u8) -> StateIdx;
+    fn set_goto(&mut self, alpha: u8, si: StateIdx);
+}

An abstraction over state transition strategies.

+ +

This is an attempt to let the caller choose the space/time trade offs +used for state transitions.

+ +

(It's possible that this interface is merely good enough for just the two +implementations in this crate.)

+
+

Required Methods

+
+

fn new(depth: u32) -> Self

Return a new state at the given depth.

+

fn goto(&self, alpha: u8) -> StateIdx

Return the next state index given the next character.

+

fn set_goto(&mut self, alpha: u8, si: StateIdx)

Set the next state index for the character given.

+
+

Implementors

+
+ + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3