pub struct Source {
pub kind: SourceKind,
pub swizzle: [u8; 4],
pub negate: bool,
pub absolute: bool,
}Expand description
One of an instruction’s three source operands.
Fields§
§kind: SourceKindWhat it reads.
swizzle: [u8; 4]The source lane (0 x to 3 w) each result lane takes.
negate: boolWhether the value is negated (after the absolute value, if both).
absolute: boolWhether the absolute value is taken.
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