@@ -13,7 +13,7 @@ use vector_types::GradientStops;
1313/// This node associates the ID of the network's parent layer to every element of output data.
1414/// This technical detail may be ignored by users, and will be phased out in the future.
1515#[ node_macro:: node( category( "" ) ) ]
16- pub async fn source_node_id < I : ' n + Send + Clone > (
16+ pub async fn source_node_id < T : ' n + Send + Clone > (
1717 _: impl Ctx ,
1818 #[ implementations(
1919 Table <Artboard >,
@@ -24,9 +24,9 @@ pub async fn source_node_id<I: 'n + Send + Clone>(
2424 Table <Color >,
2525 Table <GradientStops >,
2626 ) ]
27- content : Table < I > ,
27+ content : Table < T > ,
2828 node_path : Vec < NodeId > ,
29- ) -> Table < I > {
29+ ) -> Table < T > {
3030 // Get the penultimate element of the node path, or None if the path is too short
3131 // This is used to get the ID of the user-facing parent layer node (whose network contains this internal node).
3232 let source_node_id = node_path. get ( node_path. len ( ) . wrapping_sub ( 2 ) ) . copied ( ) ;
@@ -41,16 +41,16 @@ pub async fn source_node_id<I: 'n + Send + Clone>(
4141
4242/// Joins two tables of the same type, extending the base table with the rows of the new table.
4343#[ node_macro:: node( category( "General" ) ) ]
44- pub async fn extend < I : ' n + Send + Clone > (
44+ pub async fn extend < T : ' n + Send + Clone > (
4545 _: impl Ctx ,
4646 /// The table whose rows will appear at the start of the extended table.
4747 #[ implementations( Table <Artboard >, Table <Graphic >, Table <Vector >, Table <Raster <CPU >>, Table <Raster <GPU >>, Table <Color >, Table <GradientStops >) ]
48- base : Table < I > ,
48+ base : Table < T > ,
4949 /// The table whose rows will appear at the end of the extended table.
5050 #[ expose]
5151 #[ implementations( Table <Artboard >, Table <Graphic >, Table <Vector >, Table <Raster <CPU >>, Table <Raster <GPU >>, Table <Color >, Table <GradientStops >) ]
52- new : Table < I > ,
53- ) -> Table < I > {
52+ new : Table < T > ,
53+ ) -> Table < T > {
5454 let mut base = base;
5555 base. extend ( new) ;
5656
@@ -61,14 +61,14 @@ pub async fn extend<I: 'n + Send + Clone>(
6161/// Performs an obsolete function as part of a migration from an older document format.
6262/// Users are advised to delete this node and replace it with a new one.
6363#[ node_macro:: node( category( "" ) ) ]
64- pub async fn legacy_layer_extend < I : ' n + Send + Clone > (
64+ pub async fn legacy_layer_extend < T : ' n + Send + Clone > (
6565 _: impl Ctx ,
66- #[ implementations( Table <Artboard >, Table <Graphic >, Table <Vector >, Table <Raster <CPU >>, Table <Raster <GPU >>, Table <Color >, Table <GradientStops >) ] base : Table < I > ,
66+ #[ implementations( Table <Artboard >, Table <Graphic >, Table <Vector >, Table <Raster <CPU >>, Table <Raster <GPU >>, Table <Color >, Table <GradientStops >) ] base : Table < T > ,
6767 #[ expose]
6868 #[ implementations( Table <Artboard >, Table <Graphic >, Table <Vector >, Table <Raster <CPU >>, Table <Raster <GPU >>, Table <Color >, Table <GradientStops >) ]
69- new : Table < I > ,
69+ new : Table < T > ,
7070 nested_node_path : Vec < NodeId > ,
71- ) -> Table < I > {
71+ ) -> Table < T > {
7272 // Get the penultimate element of the node path, or None if the path is too short
7373 // This is used to get the ID of the user-facing parent layer-style node (which encapsulates this internal node).
7474 let source_node_id = nested_node_path. get ( nested_node_path. len ( ) . wrapping_sub ( 2 ) ) . copied ( ) ;
0 commit comments