#[repr(C)]pub enum ScheduleKind {
Static = 0,
Dynamic = 1,
Guided = 2,
Auto = 3,
Runtime = 4,
}
Expand description
Schedule kind for loop scheduling
Determines how loop iterations are distributed among threads.
§Examples
let sk = ScheduleKind::Static;
assert_eq!(sk.to_string(), "static");
let sk = ScheduleKind::Dynamic;
assert_eq!(sk.to_string(), "dynamic");
Variants§
Static = 0
Iterations divided into chunks of specified size, assigned statically
Dynamic = 1
Iterations divided into chunks, assigned dynamically at runtime
Guided = 2
Similar to dynamic but chunk size decreases exponentially
Auto = 3
Implementation-defined scheduling
Runtime = 4
Runtime determines schedule via environment variable
Trait Implementations§
Source§impl Clone for ScheduleKind
impl Clone for ScheduleKind
Source§fn clone(&self) -> ScheduleKind
fn clone(&self) -> ScheduleKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ScheduleKind
impl Debug for ScheduleKind
Source§impl Display for ScheduleKind
impl Display for ScheduleKind
Source§impl Hash for ScheduleKind
impl Hash for ScheduleKind
Source§impl PartialEq for ScheduleKind
impl PartialEq for ScheduleKind
impl Copy for ScheduleKind
impl Eq for ScheduleKind
impl StructuralPartialEq for ScheduleKind
Auto Trait Implementations§
impl Freeze for ScheduleKind
impl RefUnwindSafe for ScheduleKind
impl Send for ScheduleKind
impl Sync for ScheduleKind
impl Unpin for ScheduleKind
impl UnwindSafe for ScheduleKind
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