pub struct SideButton {
pub edge: ButtonEdge,
pub top: f32,
pub length: f32,
}Expand description
A button on the edge of a device’s body.
Fields§
§edge: ButtonEdgeWhich edge it is on, held upright.
top: f32From the top of the body to the top of the button.
length: f32How long it is along the edge.
Trait Implementations§
Source§impl Clone for SideButton
impl Clone for SideButton
impl Copy for SideButton
Source§impl Debug for SideButton
impl Debug for SideButton
Source§impl PartialEq for SideButton
impl PartialEq for SideButton
impl StructuralPartialEq for SideButton
Auto Trait Implementations§
impl Freeze for SideButton
impl RefUnwindSafe for SideButton
impl Send for SideButton
impl Sync for SideButton
impl Unpin for SideButton
impl UnsafeUnpin for SideButton
impl UnwindSafe for SideButton
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