implement Default traits

This commit is contained in:
yggverse 2025-01-12 14:08:30 +02:00
parent 1a0b31e695
commit 9b214b1469
55 changed files with 330 additions and 0 deletions

View file

@ -10,6 +10,12 @@ pub struct Input {
pub entry: Entry,
}
impl Default for Input {
fn default() -> Self {
Self::new()
}
}
impl Input {
// Constructors

View file

@ -22,6 +22,12 @@ pub struct Navigation {
model: RefCell<Model<(TextIter, TextIter)>>,
}
impl Default for Navigation {
fn default() -> Self {
Self::new()
}
}
impl Navigation {
// Constructors

View file

@ -4,6 +4,12 @@ pub struct Back {
pub button: Button,
}
impl Default for Back {
fn default() -> Self {
Self::new()
}
}
impl Back {
// Constructors

View file

@ -4,6 +4,12 @@ pub struct Forward {
pub button: Button,
}
impl Default for Forward {
fn default() -> Self {
Self::new()
}
}
impl Forward {
// Constructors

View file

@ -6,6 +6,12 @@ pub struct Result {
pub label: Label,
}
impl Default for Result {
fn default() -> Self {
Self::new()
}
}
impl Result {
// Constructors

View file

@ -6,6 +6,12 @@ pub struct Placeholder {
pub label: Label,
}
impl Default for Placeholder {
fn default() -> Self {
Self::new()
}
}
impl Placeholder {
// Constructors