pub struct Settings {
pub backend: Backend,
pub antialiasing: bool,
pub vsync: bool,
}Expand description
The settings usted to configure a Backend.
Fields§
§backend: BackendThe graphical backend to use.
It defaults to Backend::Best.
antialiasing: boolIf set to true, the renderer will try to perform antialiasing for some primitives.
Enabling it can produce a smoother result in some widgets, like the
Canvas, at a performance cost.
By default, it is true.
vsync: boolWhether or not to synchronize frames.
By default, it is true.
Trait Implementations§
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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