Struct sodg::LambdaRelay

source ·
pub struct LambdaRelay { /* private fields */ }
Expand description

A Relay that is made of a lambda function.

The function must accept two arguments:

  1. v is the ID of the vertex where an attribute is not found, and 2) a is the name 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 (starting from "ν") with dots inside.

Implementations§

Make a new instance of LambdaRelay with the encapsulated lambda function.

The function must accept three arguments:

  1. the ID of the vertex where the search algorithm found a problem,
  2. the name of the edge it is trying to find. The function must return a new locator, which the algorithm will use. If it is just a string, it will be treated as a name of the attribute to try instead. If it starts from "ν", it is treated as an absolute locator on the entire graph.

Trait Implementations§

A method to be called when the searching algorithm fails to find the required attribute. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.