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>
impl<'a, T> Sync for TextureBinding<'a, T>
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
)