summaryrefslogtreecommitdiff
path: root/chain/src/lib.rs
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-08-10 11:14:04 +0800
committerJSDurand <mmemmew@gmail.com>2023-08-10 11:14:04 +0800
commitb8a2d05a3c0d835556d5ddbd44e4a1e201302af5 (patch)
tree72e833f41b9a8ffd9d3e7216d2f158504343a420 /chain/src/lib.rs
parentf14c8a2aeab18a9bfa380df28f94736580e08f48 (diff)
Move the trait `Forest` to the crate "forest".
The purpose of this change is to share this trait with other crates, such as the forth-coming "semiring" crate that will be responsible for handling some simple semiring operations as well as the querying, in my plans.
Diffstat (limited to 'chain/src/lib.rs')
-rw-r--r--chain/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/chain/src/lib.rs b/chain/src/lib.rs
index f16ebb2..10143dd 100644
--- a/chain/src/lib.rs
+++ b/chain/src/lib.rs
@@ -321,7 +321,7 @@ pub trait Chain: LabelExtGraph<Edge> {
// purpose, but I have not figured out yet wha the correct trait
// should be.
/// The type of output item that will be produced by this machine.
- type Item: item::Forest<grammar::GrammarLabel>;
+ type Item: forest::Forest<grammar::GrammarLabel>;
/// Signal to the parser that the end of the input is reached, so
/// that the parser knows to generate suitable forests.