pub struct CpuProviderBundle { /* private fields */ }Expand description
Immutable direct provider slots installed on a CPU backend.
Clones share the same slot identity and may safely share compatible analysis-cache entries.
§Examples
use tenferro_cpu::{CpuBackendKind, CpuProviderBundle};
let bundle = CpuProviderBundle::builder(CpuBackendKind::default_compiled()).build()?;
let cloned = bundle.clone();
assert!(bundle.shares_identity_with(&cloned));Implementations§
Source§impl CpuProviderBundle
impl CpuProviderBundle
Sourcepub fn builder(kind: CpuBackendKind) -> CpuProviderBundleBuilder
pub fn builder(kind: CpuBackendKind) -> CpuProviderBundleBuilder
Start a bundle builder with the standard providers for kind.
Sourcepub fn custom_builder() -> CpuProviderBundleBuilder
pub fn custom_builder() -> CpuProviderBundleBuilder
Start an empty custom builder.
Return whether two handles share one immutable provider identity.
Trait Implementations§
Source§impl Clone for CpuProviderBundle
impl Clone for CpuProviderBundle
Source§fn clone(&self) -> CpuProviderBundle
fn clone(&self) -> CpuProviderBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CpuProviderBundle
impl !RefUnwindSafe for CpuProviderBundle
impl Send for CpuProviderBundle
impl Sync for CpuProviderBundle
impl Unpin for CpuProviderBundle
impl UnsafeUnpin for CpuProviderBundle
impl !UnwindSafe for CpuProviderBundle
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