pub struct BackendManager { /* private fields */ }
Expand description
Backend manager for FFT operations
Implementations§
Source§impl BackendManager
impl BackendManager
Sourcepub fn register_backend(
&self,
name: String,
backend: Arc<dyn FftBackend>,
) -> FFTResult<()>
pub fn register_backend( &self, name: String, backend: Arc<dyn FftBackend>, ) -> FFTResult<()>
Register a new backend
Sourcepub fn list_backends(&self) -> Vec<String>
pub fn list_backends(&self) -> Vec<String>
Get available backends
Sourcepub fn set_backend(&self, name: &str) -> FFTResult<()>
pub fn set_backend(&self, name: &str) -> FFTResult<()>
Set the current backend
Sourcepub fn get_backend_name(&self) -> String
pub fn get_backend_name(&self) -> String
Get current backend name
Sourcepub fn get_backend(&self) -> Arc<dyn FftBackend>
pub fn get_backend(&self) -> Arc<dyn FftBackend>
Get current backend
Sourcepub fn get_backend_info(&self, name: &str) -> Option<BackendInfo>
pub fn get_backend_info(&self, name: &str) -> Option<BackendInfo>
Get backend info
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackendManager
impl RefUnwindSafe for BackendManager
impl Send for BackendManager
impl Sync for BackendManager
impl Unpin for BackendManager
impl UnwindSafe for BackendManager
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