Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save vadixidav/6f91e831fc36f0d9ff5f1074bcfb8fb4 to your computer and use it in GitHub Desktop.

Select an option

Save vadixidav/6f91e831fc36f0d9ff5f1074bcfb8fb4 to your computer and use it in GitHub Desktop.
// Iterate forwards weaving between messages and adding instances to the vec
while let Some(i) = {instances.back().unwrap().borrow().next_instance()} {
instances.push_back(i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment