pub struct DebugTags { /* private fields */ }
Expand description
Debug tags for instructions.
Implementations§
Source§impl DebugTags
impl DebugTags
Sourcepub fn set(&mut self, inst: Inst, tags: impl IntoIterator<Item = DebugTag>)
pub fn set(&mut self, inst: Inst, tags: impl IntoIterator<Item = DebugTag>)
Set the tags on an instruction, overwriting existing tag list.
Tags can only be set on call instructions (those for which
[crate::Opcode::is_call()
] returns true
) and on
sequence_point
instructions. This property is checked by the
CLIF verifier.
Clone the tags from one instruction to another.
This clone is cheap (references the same underlying storage) because the tag lists are immutable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DebugTags
impl<'de> Deserialize<'de> for DebugTags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DebugTags
Auto Trait Implementations§
impl Freeze for DebugTags
impl RefUnwindSafe for DebugTags
impl Send for DebugTags
impl Sync for DebugTags
impl Unpin for DebugTags
impl UnwindSafe for DebugTags
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