Trait sodg::Relay

source ·
pub trait Relay {
    fn re(&self, v: u32, a: &str, b: &str) -> Result<String>;
}
Expand description

A relay that is used by Sodg::find() when it can’t find an attribute. The finding algorithm asks the relay for the name of the attribute to use instead of the not found one, which is provided as the a argument to the relay. The v argument provided to the relay is the ID of the vertex where the attribute a is not found. The b argument is the locator of the not found attribute.

A relay may return a new vertex ID as a string "ν42", for example. Pretty much anything that the relay returns will be used as a new search string, starting from the v vertex.

Required Methods§

Implementors§