Struct wgpu_hal::Attachment
source · [−]pub struct Attachment<'a, A: Api> {
pub view: &'a A::TextureView,
pub usage: TextureUses,
}
Fields
view: &'a A::TextureView
usage: TextureUses
Contains either a single mutating usage as a target, or a valid combination of read-only usages.
Trait Implementations
sourceimpl<A: Api> Clone for Attachment<'_, A>
impl<A: Api> Clone for Attachment<'_, A>
Auto Trait Implementations
impl<'a, A> RefUnwindSafe for Attachment<'a, A> where
<A as Api>::TextureView: RefUnwindSafe,
impl<'a, A> Send for Attachment<'a, A>
impl<'a, A> Sync for Attachment<'a, A>
impl<'a, A> Unpin for Attachment<'a, A>
impl<'a, A> UnwindSafe for Attachment<'a, A> where
<A as Api>::TextureView: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more