pub struct Source {
pub kind: SourceKind,
pub swizzle: [u8; 4],
pub negate: bool,
pub absolute: bool,
}Expand description
A source operand.
Fields§
§kind: SourceKindWhat the source reads.
swizzle: [u8; 4]For each lane the component (0 x to 3 w) it reads.
negate: boolThe source is negated.
absolute: boolThe source’s absolute value is used.
Trait Implementations§
impl Copy for Source
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Forget for Source
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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