pub struct PcodeOpDef {
pub span: Span,
pub name: Box<str>,
pub leading_trivia: Vec<TriviaToken>,
}Expand description
define pcodeop cpuid; — declares a user-defined p-code operation.
Such an operation has no semantics of its own; the semantic section calls it by name and the lifter treats it as an opaque intrinsic.
Fields§
§span: SpanSpan of the whole define pcodeop ...; statement.
name: Box<str>Name of the declared operation.
leading_trivia: Vec<TriviaToken>Whitespace and comments between the previous item and this one, kept so the formatter can reprint them.
Trait Implementations§
Source§impl Clone for PcodeOpDef
impl Clone for PcodeOpDef
Auto Trait Implementations§
impl Freeze for PcodeOpDef
impl RefUnwindSafe for PcodeOpDef
impl Send for PcodeOpDef
impl Sync for PcodeOpDef
impl Unpin for PcodeOpDef
impl UnsafeUnpin for PcodeOpDef
impl UnwindSafe for PcodeOpDef
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