This repository was archived by the owner on Sep 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,12 @@ impl Appendable for PartialPath {
156
156
//-------------------------------------------------------------------------------------------------
157
157
// ToAppendable
158
158
159
+ /// A trait to be implemented on types such as [`Database`][] that allow converting handles
160
+ /// to appendables.
161
+ ///
162
+ /// It is very similar to the [`std::ops::Index`] trait, but returns a reference instead
163
+ /// of a value, such that an efficient identifity implementation is possible, that doesn't
164
+ /// require cloning values.
159
165
pub trait ToAppendable < H , A >
160
166
where
161
167
A : Appendable ,
@@ -166,6 +172,8 @@ where
166
172
//-------------------------------------------------------------------------------------------------
167
173
// Candidates
168
174
175
+ /// A trait to support finding candidates for partial path extension. Requires an accompanying
176
+ /// [`ToAppendable`] implementation to convert the candidate handles into [`Appendable`]s.
169
177
pub trait Candidates < H > {
170
178
fn find_candidates < R > (
171
179
& mut self ,
You can’t perform that action at this time.
0 commit comments