#[repr(C)]pub struct RendererOptions {
pub vsync: Vsync,
pub srgb: Srgb,
pub hw_accel: HwAcceleration,
}Fields§
§vsync: Vsync§srgb: Srgb§hw_accel: HwAccelerationImplementations§
Source§impl RendererOptions
impl RendererOptions
pub const fn new(vsync: Vsync, srgb: Srgb, hw_accel: HwAcceleration) -> Self
Trait Implementations§
Source§impl Clone for RendererOptions
impl Clone for RendererOptions
Source§fn clone(&self) -> RendererOptions
fn clone(&self) -> RendererOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RendererOptions
impl Debug for RendererOptions
Source§impl Default for RendererOptions
impl Default for RendererOptions
Source§impl Hash for RendererOptions
impl Hash for RendererOptions
Source§impl Ord for RendererOptions
impl Ord for RendererOptions
Source§fn cmp(&self, other: &RendererOptions) -> Ordering
fn cmp(&self, other: &RendererOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RendererOptions
impl PartialEq for RendererOptions
Source§impl PartialOrd for RendererOptions
impl PartialOrd for RendererOptions
impl Copy for RendererOptions
impl Eq for RendererOptions
impl StructuralPartialEq for RendererOptions
Auto Trait Implementations§
impl Freeze for RendererOptions
impl RefUnwindSafe for RendererOptions
impl Send for RendererOptions
impl Sync for RendererOptions
impl Unpin for RendererOptions
impl UnwindSafe for RendererOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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