Struct convo::Link [−][src]
Fields
to_key: String
A key to the node being linked. This should be identical to an existing Node#key
.
dialogue: String
The dialogue used to describe this link.
Implementations
Link two Node
s together by creating a Link
with descriptor dialogue.
Arguments
from
- ANode
which will prompt the linkto
- ANode
which will be the target of the linkdialogue
- A string type that holds associated dialogue
Examples
use convo::{Node, Link}; let mut node1 = Node::new("root", "I am the root node!"); let node2 = Node::new("end", "I am the last node!"); Link::link(&mut node1, &node2, "I link start to end!");
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Link
impl UnwindSafe for Link
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.