pub(crate) type XRWebGLLayerInit = XRWebGLLayerInit;
Aliased Type§
struct XRWebGLLayerInit {
pub alpha: bool,
pub antialias: bool,
pub depth: bool,
pub framebufferScaleFactor: Finite<f64>,
pub ignoreDepthValues: bool,
pub stencil: bool,
}
Fields§
§alpha: bool
§antialias: bool
§depth: bool
§framebufferScaleFactor: Finite<f64>
§ignoreDepthValues: bool
§stencil: bool
Implementations
Source§impl XRWebGLLayerInit
impl XRWebGLLayerInit
pub unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandle<'_, *mut JSObject>, )
Source§impl XRWebGLLayerInit
impl XRWebGLLayerInit
pub fn empty() -> XRWebGLLayerInit
pub fn new( cx: JSContext, val: Handle<'_, Value>, ) -> Result<ConversionResult<XRWebGLLayerInit>, ()>
Trait Implementations
Source§impl Clone for XRWebGLLayerInit
impl Clone for XRWebGLLayerInit
Source§fn clone(&self) -> XRWebGLLayerInit
fn clone(&self) -> XRWebGLLayerInit
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 Default for XRWebGLLayerInit
impl Default for XRWebGLLayerInit
Source§fn default() -> XRWebGLLayerInit
fn default() -> XRWebGLLayerInit
Returns the “default value” for a type. Read more
Source§impl FromJSValConvertible for XRWebGLLayerInit
impl FromJSValConvertible for XRWebGLLayerInit
Source§unsafe fn from_jsval(
cx: *mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<XRWebGLLayerInit>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<XRWebGLLayerInit>, ()>
Convert
val
to type Self
.
Optional configuration of type T
can be passed as the option
argument.
If it returns Err(())
, a JSAPI exception is pending.
If it returns Ok(Failure(reason))
, there is no pending JSAPI exception.