Struct ugli::WebGLContextOptions
source · pub struct WebGLContextOptions {
pub alpha: bool,
pub preserve_drawing_buffer: bool,
pub stencil: bool,
pub premultiplied_alpha: bool,
pub power_preference: &'static str,
pub depth: bool,
pub antialias: bool,
}
Fields§
§alpha: bool
§preserve_drawing_buffer: bool
§stencil: bool
§premultiplied_alpha: bool
§power_preference: &'static str
§depth: bool
§antialias: bool
Trait Implementations§
source§impl Clone for WebGLContextOptions
impl Clone for WebGLContextOptions
source§fn clone(&self) -> WebGLContextOptions
fn clone(&self) -> WebGLContextOptions
Returns a copy 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 WebGLContextOptions
impl Debug for WebGLContextOptions
source§impl Default for WebGLContextOptions
impl Default for WebGLContextOptions
source§impl Deserialize<'static> for WebGLContextOptions
impl Deserialize<'static> for WebGLContextOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for WebGLContextOptions
impl Send for WebGLContextOptions
impl Sync for WebGLContextOptions
impl Unpin for WebGLContextOptions
impl UnwindSafe for WebGLContextOptions
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.