mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
implement Default traits
This commit is contained in:
parent
1a0b31e695
commit
9b214b1469
55 changed files with 330 additions and 0 deletions
|
|
@ -10,6 +10,12 @@ pub struct Input {
|
|||
pub entry: Entry,
|
||||
}
|
||||
|
||||
impl Default for Input {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Input {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,12 @@ pub struct Navigation {
|
|||
model: RefCell<Model<(TextIter, TextIter)>>,
|
||||
}
|
||||
|
||||
impl Default for Navigation {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Navigation {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,12 @@ pub struct Back {
|
|||
pub button: Button,
|
||||
}
|
||||
|
||||
impl Default for Back {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Back {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,12 @@ pub struct Forward {
|
|||
pub button: Button,
|
||||
}
|
||||
|
||||
impl Default for Forward {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Forward {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,12 @@ pub struct Result {
|
|||
pub label: Label,
|
||||
}
|
||||
|
||||
impl Default for Result {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Result {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,12 @@ pub struct Placeholder {
|
|||
pub label: Label,
|
||||
}
|
||||
|
||||
impl Default for Placeholder {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Placeholder {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue