pub struct GuiButton {
pub active: bool,
pub position_x: u8,
pub position_y: u8,
pub width: u8,
pub height: u8,
pub text: String,
}
Fields§
§active: bool
§position_x: u8
§position_y: u8
§width: u8
§height: u8
§text: String
Trait Implementations§
Source§impl FromByteSlice for GuiButton
impl FromByteSlice for GuiButton
Source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
Source§fn from_le_byte_slice(bytes: &[u8]) -> GuiButton
fn from_le_byte_slice(bytes: &[u8]) -> GuiButton
Deserialize the implementing type from a byte slice.
impl Eq for GuiButton
impl StructuralPartialEq for GuiButton
Auto Trait Implementations§
impl Freeze for GuiButton
impl RefUnwindSafe for GuiButton
impl Send for GuiButton
impl Sync for GuiButton
impl Unpin for GuiButton
impl UnwindSafe for GuiButton
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