mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-14 19:24:59 +00:00
Impl DynNode
This commit is contained in:
parent
f73836b838
commit
71f12db1e6
16 changed files with 433 additions and 84 deletions
|
@ -1,22 +1,17 @@
|
|||
//pub mod value;
|
||||
pub use graphene_core::{generic, ops /*, structural*/};
|
||||
//#![feature(const_type_name)]
|
||||
|
||||
#[cfg(feature = "memoization")]
|
||||
pub mod memo;
|
||||
|
||||
pub mod raster;
|
||||
|
||||
pub mod any;
|
||||
|
||||
pub mod document;
|
||||
|
||||
pub use graphene_core::*;
|
||||
|
||||
/*use dyn_any::DynAny;
|
||||
pub type DynNode<'n, T> = &'n (dyn Node<'n, Output = T> + 'n);
|
||||
pub type DynAnyNode<'n> = &'n (dyn Node<'n, Output = &'n dyn DynAny<'n>> + 'n);
|
||||
pub trait DynamicInput<'n> {
|
||||
fn set_kwarg_by_name(&mut self, name: &str, value: DynAnyNode<'n>);
|
||||
fn set_arg_by_index(&mut self, index: usize, value: DynAnyNode<'n>);
|
||||
}
|
||||
|
||||
*/
|
||||
use quote::quote;
|
||||
use syn::{Expr, ExprPath, Type};
|
||||
|
||||
|
@ -31,6 +26,7 @@ pub struct NodeGraph {
|
|||
pub output: Type,
|
||||
pub input: Type,
|
||||
}
|
||||
|
||||
pub enum NodeKind {
|
||||
Value(Expr),
|
||||
Input,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue