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
Source§fn clone(&self) -> CpuExecution
fn clone(&self) -> CpuExecution
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for CpuExecution
impl !RefUnwindSafe for CpuExecution
impl Send for CpuExecution
impl Sync for CpuExecution
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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