Struct GuiLayer
pub struct GuiLayer {
pub id: String,
pub placement: GuiLayerPlacement,
}Expand description
A HUD layer a native mod registers once at start: its id and where it goes.
Fields§
§id: String<namespace>:<path> in a namespace other than vanilla’s, like mymod:compass.
placement: GuiLayerPlacementWhere it goes in the layer order.
Trait Implementations§
impl Eq for GuiLayer
impl StructuralPartialEq for GuiLayer
Auto Trait Implementations§
impl Freeze for GuiLayer
impl RefUnwindSafe for GuiLayer
impl Send for GuiLayer
impl Sync for GuiLayer
impl Unpin for GuiLayer
impl UnsafeUnpin for GuiLayer
impl UnwindSafe for GuiLayer
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