diff options
| author | JSDurand <mmemmew@gmail.com> | 2026-10-16 18:16:36 +0800 |
|---|---|---|
| committer | JSDurand <mmemmew@gmail.com> | 2026-10-16 18:16:36 +0800 |
| commit | 918235659f7b0d80bfa305875ab7cc988cc51761 (patch) | |
| tree | ee657d85a6954a9d4327cc0d938e605cbb8637d1 /chain/src/item/default | |
| parent | fba9a90cfc6aca2a26cce72f55fb261789139781 (diff) | |
partial commit, before trying the new guide by claudeattempt1
Diffstat (limited to 'chain/src/item/default')
| -rw-r--r-- | chain/src/item/default/mod.rs | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/chain/src/item/default/mod.rs b/chain/src/item/default/mod.rs index eef7def..040079f 100644 --- a/chain/src/item/default/mod.rs +++ b/chain/src/item/default/mod.rs @@ -98,9 +98,10 @@ impl<T: GraphLabel> AsRef<DefaultForest<T>> for DefaultForest<T> { } impl<T: GraphLabel> ParentsGraph for DefaultForest<T> { - type Iter<'a>= <PLGraph<T> as ParentsGraph>::Iter<'a> + type Iter<'a> + = <PLGraph<T> as ParentsGraph>::Iter<'a> where - Self:'a; + Self: 'a; #[inline] fn parents_of(&self, node_id: usize) -> Result<<Self as ParentsGraph>::Iter<'_>, GError> { @@ -123,21 +124,25 @@ impl<T: GraphLabel> ParentsGraph for DefaultForest<T> { } impl<T: GraphLabel> LabelGraph<T> for DefaultForest<T> { - type Iter<'a> = std::iter::Empty<usize> + type Iter<'a> + = std::iter::Empty<usize> where Self: 'a; - type TupleIter<'a> = std::iter::Empty<(T, usize)> + type TupleIter<'a> + = std::iter::Empty<(T, usize)> where Self: 'a, T: 'a; - type LabelIter<'a> = std::iter::Empty<(&'a T, <Self as LabelGraph<T>>::Iter<'a>)> + type LabelIter<'a> + = std::iter::Empty<(&'a T, <Self as LabelGraph<T>>::Iter<'a>)> where Self: 'a, T: 'a; - type EdgeLabelIter<'a> = std::iter::Empty<T> + type EdgeLabelIter<'a> + = std::iter::Empty<T> where Self: 'a, T: 'a; |
