Struct script::dom::gpurenderbundle::GPURenderBundle
source · #[repr(C)]pub struct GPURenderBundle {
reflector_: Reflector,
channel: WebGPU,
device: WebGPUDevice,
render_bundle: WebGPURenderBundle,
label: DomRefCell<Option<USVString>>,
}
Fields
reflector_: Reflector
channel: WebGPU
device: WebGPUDevice
render_bundle: WebGPURenderBundle
label: DomRefCell<Option<USVString>>
Implementations
sourceimpl GPURenderBundle
impl GPURenderBundle
fn __assert_parent_type(&self)
sourceimpl GPURenderBundle
impl GPURenderBundle
fn new_inherited(
render_bundle: WebGPURenderBundle,
device: WebGPUDevice,
channel: WebGPU,
label: Option<USVString>
) -> Self
pub fn new(
global: &GlobalScope,
render_bundle: WebGPURenderBundle,
device: WebGPUDevice,
channel: WebGPU,
label: Option<USVString>
) -> Root<Dom<Self>>
sourceimpl GPURenderBundle
impl GPURenderBundle
pub fn id(&self) -> WebGPURenderBundle
Trait Implementations
sourceimpl DomObject for GPURenderBundle
impl DomObject for GPURenderBundle
sourceimpl DomObjectWrap for GPURenderBundle
impl DomObjectWrap for GPURenderBundle
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::GPURenderBundleBinding::GPURenderBundleBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::gpurenderbundle::GPURenderBundle>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::gpurenderbundle::GPURenderBundle>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::GPURenderBundleBinding::GPURenderBundleBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::gpurenderbundle::GPURenderBundle>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::gpurenderbundle::GPURenderBundle>>}
Function pointer to the general wrap function type
sourceimpl HasParent for GPURenderBundle
impl HasParent for GPURenderBundle
sourceimpl IDLInterface for GPURenderBundle
impl IDLInterface for GPURenderBundle
sourceimpl JSTraceable for GPURenderBundle
impl JSTraceable for GPURenderBundle
sourceimpl MallocSizeOf for GPURenderBundle
impl MallocSizeOf for GPURenderBundle
sourcefn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself. Read more
sourceimpl MutDomObject for GPURenderBundle
impl MutDomObject for GPURenderBundle
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl PartialEq<GPURenderBundle> for GPURenderBundle
impl PartialEq<GPURenderBundle> for GPURenderBundle
sourcefn eq(&self, other: &GPURenderBundle) -> bool
fn eq(&self, other: &GPURenderBundle) -> bool
sourceimpl ToJSValConvertible for GPURenderBundle
impl ToJSValConvertible for GPURenderBundle
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert
self
to a JSVal
. JSAPI failure causes a panic.Auto Trait Implementations
impl !RefUnwindSafe for GPURenderBundle
impl !Send for GPURenderBundle
impl !Sync for GPURenderBundle
impl Unpin for GPURenderBundle
impl !UnwindSafe for GPURenderBundle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert