pub struct Decorate<'a> {
pub target: Id,
pub member: Option<u32>,
pub decoration: Decoration<'a>,
}Expand description
A decoration added to an instruction, or a member of a struct.
Fields§
§target: IdThe target Id of the decoration.
member: Option<u32>The member index within target, if this decorates a member of a struct.
decoration: Decoration<'a>The Decoration assigned to the target.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Decorate<'a>
impl<'a> RefUnwindSafe for Decorate<'a>
impl<'a> Send for Decorate<'a>
impl<'a> Sync for Decorate<'a>
impl<'a> Unpin for Decorate<'a>
impl<'a> UnsafeUnpin for Decorate<'a>
impl<'a> UnwindSafe for Decorate<'a>
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