pub struct Checkbox {
pub value: bool,
}
Fields§
§value: bool
Implementations§
Trait Implementations§
Source§impl Component for Checkbox
impl Component for Checkbox
type Response = CheckboxResponse
type DrawResponse = ()
fn handle_event(&mut self, event: Event) -> Self::Response
fn draw(&mut self, rect: Rect, buffer: &mut Buffer) -> Self::DrawResponse
Auto Trait Implementations§
impl Freeze for Checkbox
impl RefUnwindSafe for Checkbox
impl Send for Checkbox
impl Sync for Checkbox
impl Unpin for Checkbox
impl UnwindSafe for Checkbox
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