Struct ScreenDrawEvent
pub struct ScreenDrawEvent<'a> {
pub block: &'a str,
pub data: &'a [i32],
pub draw: &'a mut dyn DrawContext,
pub origin: [f32; 2],
}Expand description
What BlockEntityPart::screen_draw is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§block: &'a str§data: &'a [i32]§draw: &'a mut dyn DrawContext§origin: [f32; 2]Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ScreenDrawEvent<'a>
impl<'a> !Send for ScreenDrawEvent<'a>
impl<'a> !Sync for ScreenDrawEvent<'a>
impl<'a> !UnwindSafe for ScreenDrawEvent<'a>
impl<'a> Freeze for ScreenDrawEvent<'a>
impl<'a> Unpin for ScreenDrawEvent<'a>
impl<'a> UnsafeUnpin for ScreenDrawEvent<'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