Point the construction docs at the registry that exists

This commit is contained in:
Dennis Kobert
2026-09-06 17:08:03 +00:00
parent 00920823aa
commit f7360688f2
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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>),