Skip to content

Instantly share code, notes, and snippets.

@sophiajt
Created August 26, 2018 22:41
Show Gist options
  • Save sophiajt/020ff021efb11401dd25d59698b80766 to your computer and use it in GitHub Desktop.
Save sophiajt/020ff021efb11401dd25d59698b80766 to your computer and use it in GitHub Desktop.
let x = {
let mut foo = Foo::new();
foo.append("bar");
foo.append("baz");
x
};
// or, more commonly:
let x = Foo::new()
.append("bar")
.append("baz");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment