[][src]Struct web_sys::WebGpuSwapChainDescriptor

#[repr(transparent)]
pub struct WebGpuSwapChainDescriptor { /* fields omitted */ }

The WebGPUSwapChainDescriptor dictionary

This API requires the following crate features to be activated: WebGpuSwapChainDescriptor

Methods

impl WebGpuSwapChainDescriptor[src]

pub fn new() -> WebGpuSwapChainDescriptor[src]

Construct a new WebGPUSwapChainDescriptor

This API requires the following crate features to be activated: WebGpuSwapChainDescriptor

pub fn format(&mut self, val: u32) -> &mut Self[src]

Configure the format field of this object

This API requires the following crate features to be activated: WebGpuSwapChainDescriptor

pub fn height(&mut self, val: u32) -> &mut Self[src]

Configure the height field of this object

This API requires the following crate features to be activated: WebGpuSwapChainDescriptor

pub fn usage(&mut self, val: u32) -> &mut Self[src]

Configure the usage field of this object

This API requires the following crate features to be activated: WebGpuSwapChainDescriptor

pub fn width(&mut self, val: u32) -> &mut Self[src]

Configure the width field of this object

This API requires the following crate features to be activated: WebGpuSwapChainDescriptor

Trait Implementations

impl AsRef<JsValue> for WebGpuSwapChainDescriptor[src]

impl Clone for WebGpuSwapChainDescriptor[src]

impl Debug for WebGpuSwapChainDescriptor[src]

impl From<WebGpuSwapChainDescriptor> for JsValue[src]

impl FromWasmAbi for WebGpuSwapChainDescriptor[src]

type Abi = <Object as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for WebGpuSwapChainDescriptor[src]

type Abi = <Object as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a WebGpuSwapChainDescriptor[src]

type Abi = <&'a Object as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for WebGpuSwapChainDescriptor[src]

impl OptionFromWasmAbi for WebGpuSwapChainDescriptor[src]

impl OptionIntoWasmAbi for WebGpuSwapChainDescriptor[src]

impl<'a> OptionIntoWasmAbi for &'a WebGpuSwapChainDescriptor[src]

impl RefFromWasmAbi for WebGpuSwapChainDescriptor[src]

type Abi = <Object as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<WebGpuSwapChainDescriptor>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl WasmDescribe for WebGpuSwapChainDescriptor[src]

Auto Trait Implementations

impl RefUnwindSafe for WebGpuSwapChainDescriptor

impl !Send for WebGpuSwapChainDescriptor

impl !Sync for WebGpuSwapChainDescriptor

impl Unpin for WebGpuSwapChainDescriptor

impl UnwindSafe for WebGpuSwapChainDescriptor

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.