#[non_exhaustive]pub struct WebGpuOwnedTextureDescriptor {
pub extent: RenderTargetExtent,
pub context: WebGpuContextDescriptor,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.extent: RenderTargetExtent§context: WebGpuContextDescriptorImplementations§
Source§impl WebGpuOwnedTextureDescriptor
impl WebGpuOwnedTextureDescriptor
pub fn new(extent: RenderTargetExtent, context: WebGpuContextDescriptor) -> Self
Trait Implementations§
Source§impl Clone for WebGpuOwnedTextureDescriptor
impl Clone for WebGpuOwnedTextureDescriptor
Source§fn clone(&self) -> WebGpuOwnedTextureDescriptor
fn clone(&self) -> WebGpuOwnedTextureDescriptor
Returns a duplicate 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 WebGpuOwnedTextureDescriptor
impl Debug for WebGpuOwnedTextureDescriptor
Source§impl PartialEq for WebGpuOwnedTextureDescriptor
impl PartialEq for WebGpuOwnedTextureDescriptor
Source§fn eq(&self, other: &WebGpuOwnedTextureDescriptor) -> bool
fn eq(&self, other: &WebGpuOwnedTextureDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WebGpuOwnedTextureDescriptor
Auto Trait Implementations§
impl Freeze for WebGpuOwnedTextureDescriptor
impl RefUnwindSafe for WebGpuOwnedTextureDescriptor
impl !Send for WebGpuOwnedTextureDescriptor
impl !Sync for WebGpuOwnedTextureDescriptor
impl Unpin for WebGpuOwnedTextureDescriptor
impl UnsafeUnpin for WebGpuOwnedTextureDescriptor
impl UnwindSafe for WebGpuOwnedTextureDescriptor
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