pub struct CpuExecution { /* private fields */ }Expand description
CPU execution context with runtime ISA detection and an optional local pool.
This type deliberately implements no geometry operation trait. A provider
only implements MeshBoolean, MeshCompiler, or another capability
after the algorithm exists and is verified.
Implementations§
Source§impl CpuExecution
impl CpuExecution
Sourcepub fn detect() -> Self
pub fn detect() -> Self
Best instruction path compiled into this binary and available at runtime.
Sourcepub const fn instruction_set(&self) -> CpuInstructionSet
pub const fn instruction_set(&self) -> CpuInstructionSet
Runtime-selected instruction set.
Sourcepub const fn features(&self) -> CpuFeatures
pub const fn features(&self) -> CpuFeatures
Detected machine features.
Sourcepub const fn thread_count(&self) -> NonZeroUsize
pub const fn thread_count(&self) -> NonZeroUsize
Configured worker bound.
Trait Implementations§
Source§impl Clone for CpuExecution
impl Clone for CpuExecution
Auto Trait Implementations§
impl Freeze for CpuExecution
impl RefUnwindSafe for CpuExecution
impl Send for CpuExecution
impl Sync for CpuExecution
impl Unpin for CpuExecution
impl UnsafeUnpin for CpuExecution
impl UnwindSafe for CpuExecution
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