pub struct Attachment<'a, T: DynTextureView + ?Sized> {
pub view: &'a T,
pub usage: TextureUses,
}Fields§
§view: &'a T§usage: TextureUsesContains either a single mutating usage as a target, or a valid combination of read-only usages.
Implementations§
Source§impl<'a> Attachment<'a, dyn DynTextureView>
impl<'a> Attachment<'a, dyn DynTextureView>
pub fn expect_downcast<B: DynTextureView>(&self) -> Attachment<'a, B>
Trait Implementations§
Source§impl<'a, T: Clone + DynTextureView + ?Sized> Clone for Attachment<'a, T>
impl<'a, T: Clone + DynTextureView + ?Sized> Clone for Attachment<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Attachment<'a, T>
impl<'a, T> RefUnwindSafe for Attachment<'a, T>
impl<'a, T> Send for Attachment<'a, T>
impl<'a, T> Sync for Attachment<'a, T>
impl<'a, T> Unpin for Attachment<'a, T>
impl<'a, T> UnsafeUnpin for Attachment<'a, T>
impl<'a, T> UnwindSafe for Attachment<'a, T>
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