pub struct Job<C> {
pub node: NodeId,
pub span: Span,
pub ctx: C,
pub pass_index: usize,
}Expand description
One ready node prepared for execution by a round.
The engine snapshots the node’s span and context into the job so executors can run jobs without holding borrows on the tree.
Fields§
§node: NodeIdThe tree node this job was built from.
span: SpanThe node’s region of the source.
ctx: CSnapshot of the node’s context.
pass_index: usizeIndex of the scheduled pass that will process this job.
Trait Implementations§
impl<C> Eq for Job<C>where
C: Eq,
impl<C> StructuralPartialEq for Job<C>where
C: PartialEq,
Auto Trait Implementations§
impl<C> Freeze for Job<C>where
C: Freeze,
impl<C> RefUnwindSafe for Job<C>where
C: RefUnwindSafe,
impl<C> Send for Job<C>where
C: Send,
impl<C> Sync for Job<C>where
C: Sync,
impl<C> Unpin for Job<C>where
C: Unpin,
impl<C> UnsafeUnpin for Job<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for Job<C>where
C: UnwindSafe,
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