#[derive(Edges)]
{
// Attributes available to this derive:
#[moongraph]
}
Expand description
Macro for deriving structs that encode a node’s edges/resource usage.
This is the quickest way to get a node up and running that uses a struct as
its edges. Simply add #[derive(Edges)] on your own structs if each of the
fields is one of View, ViewMut or Move.
§Example
use moongraph::{Edges, ViewMut, View, Move};
#[derive(Edges)]
struct MyData {
an_f32: ViewMut<f32>,
a_u32: View<u32>,
a_str: Move<&'static str>,
}