Initialize
This commit is contained in:
7
src/main.rs
Normal file
7
src/main.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
pub mod widget;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
0
src/widget.rs
Normal file
0
src/widget.rs
Normal file
16
src/widget/input.rs
Normal file
16
src/widget/input.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
|
||||
pub struct Input {
|
||||
value: String,
|
||||
}
|
||||
|
||||
impl Input {
|
||||
pub fn new() -> Self {
|
||||
Self { value: String::new() }
|
||||
}
|
||||
|
||||
pub fn value(&self) -> &str {
|
||||
&self.value
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user