#[non_exhaustive]pub struct Edge {
pub kind: EdgeKind,
pub args: Vec<OwnedArgument>,
/* private fields */
}Expand description
A recorded, classified connection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: EdgeKindWhat the connection means.
args: Vec<OwnedArgument>The arguments of the ɴsɪ connect call that made this edge, in
call order.
Kept whole rather than reduced to the one argument resolution
needs, so "strength" – which blocks a recursive delete – and
"value" survive for a backend that wants them, and so replay
can emit what was passed.
Implementations§
Source§impl Edge
impl Edge
Sourcepub fn priority(&self) -> i32
pub fn priority(&self) -> i32
ɴsɪ’s "priority" connection argument, or 0 when absent.
ɴsɪ ranks a repeated attribute definition by “the highest
priority”, so a larger number wins. See
Scene::geometry_binding.
Sourcepub fn index(&self) -> i32
pub fn index(&self) -> i32
ɴsɪ’s "index" connection argument, or 0 when absent.
ɴsɪ: connections to sourcemodels “must have an integer index
attribute if there are several, so the models effectively form an
ordered list”, and an instances node’s modelindices “is
matched to the index attribute of the model connection”.