pub struct PatchDispatchContext<'a> {
pub patch_label: &'a str,
pub node: &'a AinlMemoryNode,
pub frame: &'a HashMap<String, Value>,
}Expand description
Per-patch inputs for crate::PatchAdapter::execute_patch (procedural patch nodes).
[AinlRuntime] resolves a label-keyed adapter first, then falls back to the reference
crate::GraphPatchAdapter (registered as crate::GraphPatchAdapter::NAME) when no adapter
matches the procedural patch label.
Fields§
§patch_label: &'a str§node: &'a AinlMemoryNode§frame: &'a HashMap<String, Value>Implementations§
Source§impl<'a> PatchDispatchContext<'a>
impl<'a> PatchDispatchContext<'a>
pub fn procedural(&self) -> Option<&'a ProceduralNode>
Trait Implementations§
Source§impl<'a> Clone for PatchDispatchContext<'a>
impl<'a> Clone for PatchDispatchContext<'a>
Source§fn clone(&self) -> PatchDispatchContext<'a>
fn clone(&self) -> PatchDispatchContext<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PatchDispatchContext<'a>
impl<'a> Debug for PatchDispatchContext<'a>
impl<'a> Copy for PatchDispatchContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for PatchDispatchContext<'a>
impl<'a> RefUnwindSafe for PatchDispatchContext<'a>
impl<'a> Send for PatchDispatchContext<'a>
impl<'a> Sync for PatchDispatchContext<'a>
impl<'a> Unpin for PatchDispatchContext<'a>
impl<'a> UnsafeUnpin for PatchDispatchContext<'a>
impl<'a> UnwindSafe for PatchDispatchContext<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more