pub struct PressButton<T> {
pub top_left: Point,
pub size: Dimensions,
/* private fields */
}
Fields§
§top_left: Point
§size: Dimensions
Implementations§
Source§impl<T> PressButton<T>
impl<T> PressButton<T>
pub fn new( top_left: Point, size: Dimensions, text: String, press_return: T, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for PressButton<T>where
T: Freeze,
impl<T> RefUnwindSafe for PressButton<T>where
T: RefUnwindSafe,
impl<T> Send for PressButton<T>where
T: Send,
impl<T> Sync for PressButton<T>where
T: Sync,
impl<T> Unpin for PressButton<T>where
T: Unpin,
impl<T> UnwindSafe for PressButton<T>where
T: UnwindSafe,
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