Struct BroadcastContext
pub struct BroadcastContext<'a> { /* private fields */ }
Provides context to a closure called by broadcast.
Implementations
impl<'a> BroadcastContext<'a>
fn index(&self) -> usizeOur index amongst the broadcast threads (ranges from
0..self.num_threads()).fn num_threads(&self) -> usizeThe number of threads receiving the broadcast in the thread pool.
Future compatibility note
Future versions of Rayon might vary the number of threads over time, but this method will always return the number of threads which are actually receiving your particular
broadcastcall.
Trait Implementations
impl<'a> Debug for BroadcastContext<'a>
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result