pub struct Button<'text> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl EventHandler for Button<'_>
impl EventHandler for Button<'_>
fn handle_key(&mut self, key_event: KeyPressedEvent)
fn handle_event(&mut self, event: Event)
fn handle_mouse(&mut self, event: MouseEvent)
Auto Trait Implementations§
impl<'text> Freeze for Button<'text>
impl<'text> RefUnwindSafe for Button<'text>
impl<'text> Send for Button<'text>
impl<'text> Sync for Button<'text>
impl<'text> Unpin for Button<'text>
impl<'text> UnwindSafe for Button<'text>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more