#[non_exhaustive]pub struct OpenGLBorrowedTextureDescriptor {
pub extent: RenderTargetExtent,
pub context: OpenGLContextDescriptor,
pub texture: u32,
pub target: u32,
}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: OpenGLContextDescriptor§texture: u32§target: u32Implementations§
Source§impl OpenGLBorrowedTextureDescriptor
impl OpenGLBorrowedTextureDescriptor
pub fn new( extent: RenderTargetExtent, context: OpenGLContextDescriptor, texture: u32, target: u32, ) -> Self
Trait Implementations§
Source§impl Clone for OpenGLBorrowedTextureDescriptor
impl Clone for OpenGLBorrowedTextureDescriptor
Source§fn clone(&self) -> OpenGLBorrowedTextureDescriptor
fn clone(&self) -> OpenGLBorrowedTextureDescriptor
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 PartialEq for OpenGLBorrowedTextureDescriptor
impl PartialEq for OpenGLBorrowedTextureDescriptor
Source§fn eq(&self, other: &OpenGLBorrowedTextureDescriptor) -> bool
fn eq(&self, other: &OpenGLBorrowedTextureDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OpenGLBorrowedTextureDescriptor
Auto Trait Implementations§
impl Freeze for OpenGLBorrowedTextureDescriptor
impl RefUnwindSafe for OpenGLBorrowedTextureDescriptor
impl !Send for OpenGLBorrowedTextureDescriptor
impl !Sync for OpenGLBorrowedTextureDescriptor
impl Unpin for OpenGLBorrowedTextureDescriptor
impl UnsafeUnpin for OpenGLBorrowedTextureDescriptor
impl UnwindSafe for OpenGLBorrowedTextureDescriptor
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