Struct pargraph::executors::single_thread::SingleThreadExecutor
source · pub struct SingleThreadExecutor {}
Expand description
Executes graph operators on the current thread.
Implementations§
source§impl SingleThreadExecutor
impl SingleThreadExecutor
sourcepub fn run_node_labelling<Wl, Op, G>(
&self,
initial_worklist: Wl,
operator: Op,
graph: G,
)where
Wl: Worklist<Op::WorkItem>,
Op: LabellingOperator<G>,
G: GraphBase + DataMap,
G::NodeWeight: BorrowDataCell<UserData = Op::NodeWeight>,
G::NodeId: Debug,
G::EdgeId: Debug,
pub fn run_node_labelling<Wl, Op, G>(
&self,
initial_worklist: Wl,
operator: Op,
graph: G,
)where
Wl: Worklist<Op::WorkItem>,
Op: LabellingOperator<G>,
G: GraphBase + DataMap,
G::NodeWeight: BorrowDataCell<UserData = Op::NodeWeight>,
G::NodeId: Debug,
G::EdgeId: Debug,
Run an algorithm which modifies node labels but keeps the topology unchanged.
Trait Implementations§
source§impl Default for SingleThreadExecutor
impl Default for SingleThreadExecutor
source§fn default() -> SingleThreadExecutor
fn default() -> SingleThreadExecutor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SingleThreadExecutor
impl RefUnwindSafe for SingleThreadExecutor
impl Send for SingleThreadExecutor
impl Sync for SingleThreadExecutor
impl Unpin for SingleThreadExecutor
impl UnwindSafe for SingleThreadExecutor
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