mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 18:38:12 +08:00
Rename the DynEdge alias to DynSource
This commit is contained in:
@@ -79,9 +79,9 @@ pub type ErasedRecordNode = dyn for<'c> Node<ContextImpl<'c>> + Send + Sync;
|
|||||||
pub type ErasedRecordNode = dyn for<'c> Node<ContextImpl<'c>>;
|
pub type ErasedRecordNode = dyn for<'c> Node<ContextImpl<'c>>;
|
||||||
|
|
||||||
#[cfg(not(target_family = "wasm"))]
|
#[cfg(not(target_family = "wasm"))]
|
||||||
type DynEdge = dyn std::any::Any + Send + Sync;
|
type DynSource = dyn std::any::Any + Send + Sync;
|
||||||
#[cfg(target_family = "wasm")]
|
#[cfg(target_family = "wasm")]
|
||||||
type DynEdge = dyn std::any::Any;
|
type DynSource = dyn std::any::Any;
|
||||||
|
|
||||||
pub fn record_type<T: 'static>() -> Type {
|
pub fn record_type<T: 'static>() -> Type {
|
||||||
Type::Record(Box::new(concrete!(T)))
|
Type::Record(Box::new(concrete!(T)))
|
||||||
@@ -186,11 +186,11 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct SourceHandle {
|
pub struct SourceHandle {
|
||||||
node: Box<DynEdge>,
|
node: Box<DynSource>,
|
||||||
share: fn(&DynEdge) -> Box<DynEdge>,
|
share: fn(&DynSource) -> Box<DynSource>,
|
||||||
serialize: fn(&DynEdge) -> Option<std::sync::Arc<dyn std::any::Any + Send + Sync>>,
|
serialize: fn(&DynSource) -> Option<std::sync::Arc<dyn std::any::Any + Send + Sync>>,
|
||||||
layout: fn(&DynEdge) -> &crate::record::Layout,
|
layout: fn(&DynSource) -> &crate::record::Layout,
|
||||||
set_layout: fn(&mut DynEdge, crate::record::RecordLayout),
|
set_layout: fn(&mut DynSource, crate::record::RecordLayout),
|
||||||
ty: Type,
|
ty: Type,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user