Skip to main content

BranchTransform

Type Alias BranchTransform 

Source
pub type BranchTransform<S> = Arc<dyn Fn(&mut S, usize) + Send + Sync>;
Expand description

A transform applied to each branch-state clone at multi-node frontier formation, right after the clone is taken from the trunk (see BspEngine::with_branch_transform). The usize is the branch’s ordinal within the frontier formation (declaration order, 0-based).

Aliased Type§

pub struct BranchTransform<S> { /* private fields */ }