pub struct InstructionWithPredicate {
pub predicate: Option<Predicate>,
pub instruction: Instruction,
}Expand description
Represents a complete instruction with optional predicate guard Format: [@{!}pred] instruction
Fields§
§predicate: Option<Predicate>§instruction: InstructionTrait Implementations§
Source§impl Clone for InstructionWithPredicate
impl Clone for InstructionWithPredicate
Source§fn clone(&self) -> InstructionWithPredicate
fn clone(&self) -> InstructionWithPredicate
Returns a duplicate 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 InstructionWithPredicate
impl Debug for InstructionWithPredicate
Source§impl PartialEq for InstructionWithPredicate
impl PartialEq for InstructionWithPredicate
Source§impl PtxParser for InstructionWithPredicate
impl PtxParser for InstructionWithPredicate
Source§fn parse(stream: &mut PtxTokenStream<'_>) -> Result<Self, PtxParseError>
fn parse(stream: &mut PtxTokenStream<'_>) -> Result<Self, PtxParseError>
Parse a PTX instruction with optional label and predicate
Format: [label:] [@{!}pred] instruction
impl StructuralPartialEq for InstructionWithPredicate
Auto Trait Implementations§
impl Freeze for InstructionWithPredicate
impl RefUnwindSafe for InstructionWithPredicate
impl Send for InstructionWithPredicate
impl Sync for InstructionWithPredicate
impl Unpin for InstructionWithPredicate
impl UnwindSafe for InstructionWithPredicate
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