pub struct BackendConfig { /* private fields */ }
Expand description
BackendConfig is a struct that holds the configuration for the backend memory: MemoryMode power: PowerMode precision: PrecisionMode
Implementations§
source§impl BackendConfig
impl BackendConfig
sourcepub fn set_memory_mode(&mut self, mode: MemoryMode)
pub fn set_memory_mode(&mut self, mode: MemoryMode)
Sets the MemoryMode for the backend
sourcepub fn with_memory_mode(self, mode: MemoryMode) -> Self
pub fn with_memory_mode(self, mode: MemoryMode) -> Self
Sets the MemoryMode for the backend
sourcepub fn get_memory_mode(&self) -> MemoryMode
pub fn get_memory_mode(&self) -> MemoryMode
Gets the MemoryMode for the backend
sourcepub fn set_power_mode(&mut self, mode: PowerMode)
pub fn set_power_mode(&mut self, mode: PowerMode)
Sets the PowerMode for the backend
sourcepub fn with_power_mode(self, mode: PowerMode) -> Self
pub fn with_power_mode(self, mode: PowerMode) -> Self
Sets the PowerMode for the backend
sourcepub fn get_power_mode(&self) -> PowerMode
pub fn get_power_mode(&self) -> PowerMode
Gets the PowerMode for the backend
sourcepub fn set_precision_mode(&mut self, mode: PrecisionMode)
pub fn set_precision_mode(&mut self, mode: PrecisionMode)
Sets the PrecisionMode for the backend
sourcepub fn with_precision_mode(self, mode: PrecisionMode) -> Self
pub fn with_precision_mode(self, mode: PrecisionMode) -> Self
Sets the PrecisionMode for the backend
sourcepub fn get_precision_mode(&self) -> PrecisionMode
pub fn get_precision_mode(&self) -> PrecisionMode
Gets the PrecisionMode for the backend
sourcepub fn set_flags(&mut self, flags: usize)
pub fn set_flags(&mut self, flags: usize)
Sets the flags for the backend What the flag represents is depends on each backend or isn’t documented
sourcepub fn with_flags(self, flags: usize) -> Self
pub fn with_flags(self, flags: usize) -> Self
Sets the flags for the backend
§Safety
This just binds to the underlying unsafe api and should be used only if you know what you are doing
§Safety
This just binds to the underlying unsafe api and should be used only if you know what you are doing
Trait Implementations§
source§impl Clone for BackendConfig
impl Clone for BackendConfig
source§impl Debug for BackendConfig
impl Debug for BackendConfig
source§impl Default for BackendConfig
impl Default for BackendConfig
Auto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl !Send for BackendConfig
impl !Sync for BackendConfig
impl Unpin for BackendConfig
impl UnwindSafe for BackendConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)