pub struct IdInfo<'a> { /* private fields */ }
Expand description
Information associated with an Id
.
Implementations
sourceimpl<'a> IdInfo<'a>
impl<'a> IdInfo<'a>
sourcepub fn instruction(&self) -> &'a Instruction
pub fn instruction(&self) -> &'a Instruction
Returns the instruction that defines this Id
with a result_id
operand.
sourcepub fn iter_name(&self) -> impl ExactSizeIterator<Item = &'a Instruction>
pub fn iter_name(&self) -> impl ExactSizeIterator<Item = &'a Instruction>
Returns an iterator over all name debug instructions that target this Id
.
sourcepub fn iter_decoration(&self) -> impl ExactSizeIterator<Item = &'a Instruction>
pub fn iter_decoration(&self) -> impl ExactSizeIterator<Item = &'a Instruction>
Returns an iterator over all decorate instructions, that target this Id
. This includes any
decorate instructions that target this Id
indirectly via a DecorationGroup
.
sourcepub fn iter_members(
&self
) -> impl ExactSizeIterator<Item = StructMemberInfo<'a>>
pub fn iter_members(
&self
) -> impl ExactSizeIterator<Item = StructMemberInfo<'a>>
If this Id
refers to a TypeStruct
, returns an iterator of information about each member
of the struct. Empty otherwise.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for IdInfo<'a>
impl<'a> Send for IdInfo<'a>
impl<'a> Sync for IdInfo<'a>
impl<'a> Unpin for IdInfo<'a>
impl<'a> UnwindSafe for IdInfo<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more