pub struct LocatedInstruction<I, Id> { /* private fields */ }Expand description
A decoded instruction and all immutable metadata required before execution.
Implementations§
Source§impl<I, Id> LocatedInstruction<I, Id>
impl<I, Id> LocatedInstruction<I, Id>
Sourcepub fn new(
instruction: I,
id: Id,
location: SourceLocation,
safepoint: bool,
coverage: Option<CoverageMetadata>,
) -> Self
pub fn new( instruction: I, id: Id, location: SourceLocation, safepoint: bool, coverage: Option<CoverageMetadata>, ) -> Self
Prepares one instruction. Its identity is checked against the policy while code is frozen.
Sourcepub fn instruction(&self) -> &I
pub fn instruction(&self) -> &I
Returns the decoded instruction.
Sourcepub fn location(&self) -> &SourceLocation
pub fn location(&self) -> &SourceLocation
Returns its source location.
Sourcepub fn is_safepoint(&self) -> bool
pub fn is_safepoint(&self) -> bool
Returns whether this is a semantic safepoint.
Sourcepub fn coverage(&self) -> Option<CoverageMetadata>
pub fn coverage(&self) -> Option<CoverageMetadata>
Returns the optional stable coverage-counter metadata.
Trait Implementations§
Source§impl<I: Clone, Id: Clone> Clone for LocatedInstruction<I, Id>
impl<I: Clone, Id: Clone> Clone for LocatedInstruction<I, Id>
Source§fn clone(&self) -> LocatedInstruction<I, Id>
fn clone(&self) -> LocatedInstruction<I, Id>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<I: Eq, Id: Eq> Eq for LocatedInstruction<I, Id>
impl<I: PartialEq, Id: PartialEq> StructuralPartialEq for LocatedInstruction<I, Id>
Auto Trait Implementations§
impl<I, Id> Freeze for LocatedInstruction<I, Id>
impl<I, Id> RefUnwindSafe for LocatedInstruction<I, Id>where
I: RefUnwindSafe,
Id: RefUnwindSafe,
impl<I, Id> Send for LocatedInstruction<I, Id>
impl<I, Id> Sync for LocatedInstruction<I, Id>
impl<I, Id> Unpin for LocatedInstruction<I, Id>
impl<I, Id> UnsafeUnpin for LocatedInstruction<I, Id>where
I: UnsafeUnpin,
Id: UnsafeUnpin,
impl<I, Id> UnwindSafe for LocatedInstruction<I, Id>where
I: UnwindSafe,
Id: UnwindSafe,
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