Struct wgpu_hal::TextureBinding
source · pub struct TextureBinding<'a, T: DynTextureView + ?Sized> {
pub view: &'a T,
pub usage: TextureUses,
}
Fields§
§view: &'a T
§usage: TextureUses
Implementations§
source§impl<'a> TextureBinding<'a, dyn DynTextureView>
impl<'a> TextureBinding<'a, dyn DynTextureView>
pub fn expect_downcast<T: DynTextureView>(self) -> TextureBinding<'a, T>
Trait Implementations§
source§impl<'a, T: DynTextureView + ?Sized> Clone for TextureBinding<'a, T>
impl<'a, T: DynTextureView + ?Sized> Clone for TextureBinding<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for TextureBinding<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for TextureBinding<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for TextureBinding<'a, T>where
T: ?Sized,
impl<'a, T> Sync for TextureBinding<'a, T>where
T: ?Sized,
impl<'a, T> Unpin for TextureBinding<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for TextureBinding<'a, T>where
T: RefUnwindSafe + ?Sized,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)