Enum wgpu_core::track::texture::SingleOrManyStates
source · enum SingleOrManyStates<S, M> {
Single(S),
Many(M),
}
Expand description
Container that signifies storing both different things if there is a single state or many different states involved in the operation.
Variants§
Trait Implementations§
source§impl<S: Clone, M: Clone> Clone for SingleOrManyStates<S, M>
impl<S: Clone, M: Clone> Clone for SingleOrManyStates<S, M>
source§fn clone(&self) -> SingleOrManyStates<S, M>
fn clone(&self) -> SingleOrManyStates<S, M>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<S, M> Freeze for SingleOrManyStates<S, M>
impl<S, M> RefUnwindSafe for SingleOrManyStates<S, M>where
S: RefUnwindSafe,
M: RefUnwindSafe,
impl<S, M> Send for SingleOrManyStates<S, M>
impl<S, M> Sync for SingleOrManyStates<S, M>
impl<S, M> Unpin for SingleOrManyStates<S, M>
impl<S, M> UnwindSafe for SingleOrManyStates<S, M>where
S: UnwindSafe,
M: UnwindSafe,
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
)