mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Rename the record_edge accessor to record_source
This commit is contained in:
@@ -197,7 +197,7 @@ impl DynamicExecutor {
|
||||
let edge = self
|
||||
.tree
|
||||
.get_by_path(node_path)
|
||||
.and_then(SourceHandle::record_edge)
|
||||
.and_then(SourceHandle::record_source)
|
||||
.ok_or_else(|| IntrospectError::PathNotFound(node_path.to_vec()))?;
|
||||
let arena = self.arena.lock().unwrap_or_else(PoisonError::into_inner);
|
||||
let persistent = self.persistent.lock().unwrap_or_else(PoisonError::into_inner);
|
||||
|
||||
@@ -263,9 +263,9 @@ impl SourceHandle {
|
||||
self.downcast_erased(record_edge_type::<T>())
|
||||
}
|
||||
|
||||
/// The erased record edge, for callers that dispatch on the layout rather
|
||||
/// than a static element type. `None` for an edge erased to another node type.
|
||||
pub fn record_edge(self) -> Option<SharedSource<ErasedRecordNode>> {
|
||||
/// The erased record source, for callers that dispatch on the layout rather
|
||||
/// than a static element type. `None` for a source erased to another node type.
|
||||
pub fn record_source(self) -> Option<SharedSource<ErasedRecordNode>> {
|
||||
self.node.downcast::<SharedSource<ErasedRecordNode>>().ok().map(|edge| *edge)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user