1- extern crate alloc;
2-
31#[ macro_use]
42extern crate log;
5- pub use crate as graphene_core;
6- pub use num_traits;
73
4+ pub use crate as graphene_core;
85pub use ctor;
6+ pub use num_traits;
97
108pub mod animation;
119pub mod consts;
@@ -35,12 +33,12 @@ pub mod application_io;
3533pub mod registry;
3634
3735pub use context:: * ;
38- use core:: any:: TypeId ;
39- use core:: future:: Future ;
40- use core:: pin:: Pin ;
4136pub use dyn_any:: { StaticTypeSized , WasmNotSend , WasmNotSync } ;
4237pub use memo:: MemoHash ;
4338pub use raster:: Color ;
39+ use std:: any:: TypeId ;
40+ use std:: future:: Future ;
41+ use std:: pin:: Pin ;
4442pub use types:: Cow ;
4543
4644// pub trait Node: for<'n> NodeIO<'n> {
@@ -54,11 +52,11 @@ pub trait Node<'i, Input> {
5452 fn reset ( & self ) { }
5553 /// Returns the name of the node for diagnostic purposes.
5654 fn node_name ( & self ) -> & ' static str {
57- core :: any:: type_name :: < Self > ( )
55+ std :: any:: type_name :: < Self > ( )
5856 }
5957 /// Serialize the node which is used for the `introspect` function which can retrieve values from monitor nodes.
60- fn serialize ( & self ) -> Option < std:: sync:: Arc < dyn core :: any:: Any + Send + Sync > > {
61- log:: warn!( "Node::serialize not implemented for {}" , core :: any:: type_name:: <Self >( ) ) ;
58+ fn serialize ( & self ) -> Option < std:: sync:: Arc < dyn std :: any:: Any + Send + Sync > > {
59+ log:: warn!( "Node::serialize not implemented for {}" , std :: any:: type_name:: <Self >( ) ) ;
6260 None
6361 }
6462}
@@ -75,13 +73,13 @@ where
7573 TypeId :: of :: < Input :: Static > ( )
7674 }
7775 fn input_type_name ( & self ) -> & ' static str {
78- core :: any:: type_name :: < Input > ( )
76+ std :: any:: type_name :: < Input > ( )
7977 }
80- fn output_type ( & self ) -> core :: any:: TypeId {
78+ fn output_type ( & self ) -> std :: any:: TypeId {
8179 TypeId :: of :: < <Self :: Output as StaticTypeSized >:: Static > ( )
8280 }
8381 fn output_type_name ( & self ) -> & ' static str {
84- core :: any:: type_name :: < Self :: Output > ( )
82+ std :: any:: type_name :: < Self :: Output > ( )
8583 }
8684 fn to_node_io ( & self , inputs : Vec < Type > ) -> NodeIOTypes {
8785 NodeIOTypes {
@@ -122,7 +120,7 @@ impl<'i, I: 'i, O: 'i, N: Node<'i, I, Output = O> + ?Sized> Node<'i, I> for Box<
122120 ( * * self ) . eval ( input)
123121 }
124122}
125- impl < ' i , I : ' i , O : ' i , N : Node < ' i , I , Output = O > + ?Sized > Node < ' i , I > for alloc :: sync:: Arc < N > {
123+ impl < ' i , I : ' i , O : ' i , N : Node < ' i , I , Output = O > + ?Sized > Node < ' i , I > for std :: sync:: Arc < N > {
126124 type Output = O ;
127125 fn eval ( & ' i self , input : I ) -> O {
128126 ( * * self ) . eval ( input)
@@ -148,7 +146,7 @@ pub type WasmSurfaceHandle = application_io::SurfaceHandle<web_sys::HtmlCanvasEl
148146#[ cfg( feature = "wasm" ) ]
149147pub type WasmSurfaceHandleFrame = application_io:: SurfaceHandleFrame < web_sys:: HtmlCanvasElement > ;
150148
151- pub trait InputAccessorSource < ' a , T > : InputAccessorSourceIdentifier + core :: fmt:: Debug {
149+ pub trait InputAccessorSource < ' a , T > : InputAccessorSourceIdentifier + std :: fmt:: Debug {
152150 fn get_input ( & ' a self , index : usize ) -> Option < & ' a T > ;
153151 fn set_input ( & ' a mut self , index : usize , value : T ) ;
154152}
0 commit comments