Skip to content

Commit

Permalink
#72 doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 11, 2023
1 parent 311d7dc commit cc691b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ pub trait Relay {
#[derive(Clone, Copy)]
pub struct DeadRelay {}

/// This `Relay` can be made of a lambda function.
/// This `Relay` can be made of a lambda function. The function must
/// accept three arguments: `v` is the ID of the vertex where an attribute
/// is not found, `a` is the name of the attribute, `b` is the optional locator
/// of the attribute. The function must return a new locator where the
/// search algorithm must continue. It can be just a name of a new attribute,
/// or an absolute locator with dots inside.
#[derive(Clone, Copy)]
pub struct LambdaRelay {
lambda: fn(u32, &str, &str) -> Result<String>,
Expand Down

0 comments on commit cc691b2

Please sign in to comment.