Enum naga::SwizzleComponent
source · #[repr(u8)]pub enum SwizzleComponent {
X = 0,
Y = 1,
Z = 2,
W = 3,
}
Expand description
Component selection for a vector swizzle.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for SwizzleComponent
impl Clone for SwizzleComponent
source§fn clone(&self) -> SwizzleComponent
fn clone(&self) -> SwizzleComponent
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 moresource§impl Debug for SwizzleComponent
impl Debug for SwizzleComponent
source§impl PartialEq for SwizzleComponent
impl PartialEq for SwizzleComponent
source§impl PartialOrd for SwizzleComponent
impl PartialOrd for SwizzleComponent
impl Copy for SwizzleComponent
impl StructuralPartialEq for SwizzleComponent
Auto Trait Implementations§
impl Freeze for SwizzleComponent
impl RefUnwindSafe for SwizzleComponent
impl Send for SwizzleComponent
impl Sync for SwizzleComponent
impl Unpin for SwizzleComponent
impl UnwindSafe for SwizzleComponent
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
)