Register snapshots
This commit is contained in:
parent
3a481c0f88
commit
66319b0278
74 changed files with 23 additions and 9843 deletions
|
|
@ -100,21 +100,6 @@ pub impl state_ {
|
|||
|
||||
/// Iterate over the states that can be reached in one message
|
||||
/// from this state.
|
||||
#[cfg(stage0)]
|
||||
fn reachable(&self, f: &fn(state) -> bool) {
|
||||
for self.messages.each |m| {
|
||||
match *m {
|
||||
message(_, _, _, _, Some(next_state { state: ref id, _ })) => {
|
||||
let state = self.proto.get_state((*id));
|
||||
if !f(state) { break }
|
||||
}
|
||||
_ => ()
|
||||
}
|
||||
}
|
||||
}
|
||||
/// Iterate over the states that can be reached in one message
|
||||
/// from this state.
|
||||
#[cfg(not(stage0))]
|
||||
fn reachable(&self, f: &fn(state) -> bool) -> bool {
|
||||
for self.messages.each |m| {
|
||||
match *m {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue