mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 07:08:11 +08:00
Point the construction docs at the registry that exists
This commit is contained in:
@@ -70,11 +70,12 @@ impl core::fmt::Display for ProtoNetwork {
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
/// Defines the arguments used to construct the boxed node struct. This is used to call the constructor function in the `node_registry.rs` file - which is hidden behind a wall of macros.
|
||||
/// Defines the arguments used to construct the boxed node struct, passed to the
|
||||
/// constructor registered in `NODE_REGISTRY` (`core-types/src/registry.rs`).
|
||||
pub enum ConstructionArgs {
|
||||
/// A value of a type that is known, allowing serialization (serde::Deserialize is not object safe)
|
||||
Value(MemoHash<value::TaggedValue>),
|
||||
/// A list of nodes used as inputs to the constructor function in `node_registry.rs`.
|
||||
/// A list of nodes used as inputs to the registered constructor.
|
||||
/// The bool indicates whether to treat the node as lambda node.
|
||||
// TODO: use a struct for clearer naming.
|
||||
Nodes(Vec<NodeId>),
|
||||
|
||||
Reference in New Issue
Block a user