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