mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
implement Default traits
This commit is contained in:
parent
1a0b31e695
commit
9b214b1469
55 changed files with 330 additions and 0 deletions
|
|
@ -8,6 +8,12 @@ pub struct Action {
|
|||
pub update: Rc<Update>,
|
||||
}
|
||||
|
||||
impl Default for Action {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Action {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,12 @@ pub struct Update {
|
|||
pub gobject: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for Update {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Update {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,12 @@ pub struct Unsupported {
|
|||
widget: Rc<Widget>,
|
||||
}
|
||||
|
||||
impl Default for Unsupported {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Unsupported {
|
||||
// Construct
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,12 @@ pub struct Widget {
|
|||
gobject: AlertDialog,
|
||||
}
|
||||
|
||||
impl Default for Widget {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Widget {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue