Rename the DynEdge alias to DynSource

This commit is contained in:
Dennis Kobert
2026-09-06 16:27:32 +00:00
parent 02f9cf3e6b
commit 0426a01e82
@@ -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,
} }