Struct ItemDecorationsEvent
pub struct ItemDecorationsEvent<'a> {
pub stack: &'a ItemStack,
pub x: f32,
pub y: f32,
pub draw: &'a mut dyn DrawContext,
}Expand description
What ItemPart::item_decorations is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§stack: &'a ItemStack§x: f32§y: f32§draw: &'a mut dyn DrawContextAuto Trait Implementations§
impl<'a> !RefUnwindSafe for ItemDecorationsEvent<'a>
impl<'a> !Send for ItemDecorationsEvent<'a>
impl<'a> !Sync for ItemDecorationsEvent<'a>
impl<'a> !UnwindSafe for ItemDecorationsEvent<'a>
impl<'a> Freeze for ItemDecorationsEvent<'a>
impl<'a> Unpin for ItemDecorationsEvent<'a>
impl<'a> UnsafeUnpin for ItemDecorationsEvent<'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