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
|
|
@ -40,6 +40,12 @@ pub struct Append {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for Append {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Append {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ pub struct Bookmark {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for Bookmark {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Bookmark {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ pub struct Close {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for Close {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Close {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ pub struct CloseAll {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for CloseAll {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl CloseAll {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ pub struct Find {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for Find {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Find {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ pub struct HistoryBack {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for HistoryBack {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl HistoryBack {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ pub struct HistoryForward {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for HistoryForward {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl HistoryForward {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ pub struct Home {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for Home {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Home {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,12 @@ pub struct Open {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for Open {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Open {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ pub struct Pin {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for Pin {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Pin {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ pub struct Reload {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for Reload {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Reload {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ pub struct SaveAs {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for SaveAs {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl SaveAs {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ pub struct Source {
|
|||
pub simple_action: SimpleAction,
|
||||
}
|
||||
|
||||
impl Default for Source {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Source {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue