pub struct CoreExecutor<'a> {
pub core_id: u8,
pub state: CompactCoreState,
pub coordinator: Option<&'a SharedCoordinator>,
}Expand description
Per-core execution context
Fields§
§core_id: u8Core identifier (0-255)
state: CompactCoreStateCore state containing graph and witness data
coordinator: Option<&'a SharedCoordinator>Reference to shared coordinator for cross-core synchronization
Implementations§
Source§impl<'a> CoreExecutor<'a>
impl<'a> CoreExecutor<'a>
Sourcepub fn init(core_id: u8, coordinator: Option<&'a SharedCoordinator>) -> Self
pub fn init(core_id: u8, coordinator: Option<&'a SharedCoordinator>) -> Self
Initialize core with its assigned range
Sourcepub fn add_edge(
&mut self,
src: CompactVertexId,
tgt: CompactVertexId,
weight: u16,
)
pub fn add_edge( &mut self, src: CompactVertexId, tgt: CompactVertexId, weight: u16, )
Add edge to this core’s local graph
Sourcepub fn process(&mut self) -> CoreResult
pub fn process(&mut self) -> CoreResult
Process this core’s assigned range
Sourcepub fn compute_boundary_simd(&self, set: &BitSet256) -> u16
pub fn compute_boundary_simd(&self, set: &BitSet256) -> u16
SIMD-accelerated boundary computation for a vertex set
Uses WASM SIMD128 when available for parallel edge checking
Sourcepub fn membership_count_simd(&self, set: &BitSet256) -> u32
pub fn membership_count_simd(&self, set: &BitSet256) -> u32
SIMD-accelerated population count for membership sets
Auto Trait Implementations§
impl<'a> Freeze for CoreExecutor<'a>
impl<'a> RefUnwindSafe for CoreExecutor<'a>
impl<'a> Send for CoreExecutor<'a>
impl<'a> Sync for CoreExecutor<'a>
impl<'a> Unpin for CoreExecutor<'a>
impl<'a> UnwindSafe for CoreExecutor<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more