pub(crate) type XRSessionInit = XRSessionInit;
Aliased Type§
struct XRSessionInit {
pub optionalFeatures: Option<Vec<RootedTraceableBox<Heap<Value>>>>,
pub requiredFeatures: Option<Vec<RootedTraceableBox<Heap<Value>>>>,
}
Fields§
§optionalFeatures: Option<Vec<RootedTraceableBox<Heap<Value>>>>
§requiredFeatures: Option<Vec<RootedTraceableBox<Heap<Value>>>>
Implementations
Source§impl XRSessionInit
impl XRSessionInit
pub unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandle<'_, *mut JSObject>, )
Source§impl XRSessionInit
impl XRSessionInit
pub fn empty() -> RootedTraceableBox<XRSessionInit>
pub fn new( cx: JSContext, val: Handle<'_, Value>, ) -> Result<ConversionResult<RootedTraceableBox<XRSessionInit>>, ()>
Trait Implementations
Source§impl Default for XRSessionInit
impl Default for XRSessionInit
Source§fn default() -> XRSessionInit
fn default() -> XRSessionInit
Returns the “default value” for a type. Read more