pub enum Backend {
Best,
Hardware(Api),
Software,
Custom(String),
}Expand description
A graphical backend.
You can override the default strategy by setting the ICED_BACKEND environment variable.
If you are using the default renderer, the available options are:
wgpufor the hardware accelerated backend.tiny-skiafor the software-based backend.
Variants§
Best
Auto-detect and choose the best available Backend.
Hardware(Api)
Hardware accelerated graphics backend with the given Api.
Software
Sofware graphics backend; quite slower than hardware-based backends, but more compatible.
Custom(String)
A custom rendering backend with the given name.
Implementations§
Source§impl Backend
impl Backend
Sourcepub fn is_software(&self) -> bool
pub fn is_software(&self) -> bool
Returns true if the Backend is Backend::Software.
Trait Implementations§
impl Eq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
impl UnwindSafe for Backend
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