pub enum SourceKind {
Register(Register),
Input(u8),
Constant,
}Expand description
What a source operand reads.
Variants§
Register(Register)
A register.
Input(u8)
An interpolated input, by its 4-bit input index (InputSource::from_index names it).
Constant
The inline constant in the slot after the instruction.
Implementations§
Source§impl SourceKind
impl SourceKind
Sourcepub fn input_source(self) -> Option<InputSource>
pub fn input_source(self) -> Option<InputSource>
The interpolant this operand reads, if it is an input operand.
Trait Implementations§
Source§impl Clone for SourceKind
impl Clone for SourceKind
impl Copy for SourceKind
Source§impl Debug for SourceKind
impl Debug for SourceKind
impl Eq for SourceKind
Source§impl PartialEq for SourceKind
impl PartialEq for SourceKind
impl StructuralPartialEq for SourceKind
Auto Trait Implementations§
impl Forget for SourceKind
impl Freeze for SourceKind
impl RefUnwindSafe for SourceKind
impl Send for SourceKind
impl Sync for SourceKind
impl Unpin for SourceKind
impl UnsafeUnpin for SourceKind
impl UnwindSafe for SourceKind
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