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: ?Sized> RefUnwindSafe for TextureBinding<'a, T>where
T: RefUnwindSafe,
impl<'a, T: ?Sized> Send for TextureBinding<'a, T>
impl<'a, T: ?Sized> Sync for TextureBinding<'a, T>
impl<'a, T: ?Sized> Unpin for TextureBinding<'a, T>
impl<'a, T: ?Sized> UnwindSafe for TextureBinding<'a, T>where
T: RefUnwindSafe,
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