This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class InitEventArgs {}; | |
export class ResetEventArgs {}; | |
export class ItemsChangedEventArgs { | |
public added: ReadonlyArray<any>; | |
public removed: ReadonlyArray<any>; | |
constructor(added?: ReadonlyArray<any>, removed?: ReadonlyArray<any>) { | |
this.added = added || []; | |
this.removed = removed || []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro_rules! commands { | |
( | |
($cmd_enum:ident, $results_mod:ident, $ret_enum:ident), | |
$( | |
$cmd:ident -> $( | |
$res:ident $( | |
($($inner:ty),+) | |
)? | |
)|+ | |
),+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(dead_code)] | |
#![allow(unused_variables)] | |
mod naive { | |
fn foo(x: &[i32], y: i32) -> Option<usize> { | |
super::real_impl::find(x, y) | |
} | |
#[test] |