pub struct GpuBackendFactory;
Expand description
GPU backend factory
Implementations§
Source§impl GpuBackendFactory
impl GpuBackendFactory
Sourcepub fn create_best_available() -> QuantRS2Result<Arc<dyn GpuBackend>>
pub fn create_best_available() -> QuantRS2Result<Arc<dyn GpuBackend>>
Create the best available GPU backend
Sourcepub fn create_backend(backend_type: &str) -> QuantRS2Result<Arc<dyn GpuBackend>>
pub fn create_backend(backend_type: &str) -> QuantRS2Result<Arc<dyn GpuBackend>>
Create a specific backend
Sourcepub fn available_backends() -> Vec<&'static str>
pub fn available_backends() -> Vec<&'static str>
List available backends
Auto Trait Implementations§
impl Freeze for GpuBackendFactory
impl RefUnwindSafe for GpuBackendFactory
impl Send for GpuBackendFactory
impl Sync for GpuBackendFactory
impl Unpin for GpuBackendFactory
impl UnwindSafe for GpuBackendFactory
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> 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