Skip to content

Instantly share code, notes, and snippets.

View rrohrer's full-sized avatar
💭
writing a lot of rust

rainroar rrohrer

💭
writing a lot of rust
View GitHub Profile
@rrohrer
rrohrer / tree_syntax_highlighting.json
Created August 16, 2020 00:39
Settings for the "Syntax Highlighter for VsCode" plugin
"workbench.colorCustomizations": {
"[Noctis]": {
"syntax.type": "#d67e5c",
"syntax.variable": "#e4b781",
"syntax.control": "#df769b",
"syntax.constant": "#d5971a",
"syntax.number": "#7060eb",
"syntax.string": "#49e9a6",
"syntax.modifier": "#49ace9",
"syntax.punctuation": "#90a4ae",
@rrohrer
rrohrer / streaming_iter.rs
Created July 19, 2020 22:37
Streaming Iterators in a Trait
trait HasIter<'a, T> {
type IterType: Iterator<Item = T>;
}
trait Collection<T>: for<'a> HasIter<'a, &'a T> {
fn iter<'a>(&'a self) -> <Self as HasIter<'a, &'a T>>::IterType;
}
struct Bar<T>(T);
struct BarIter<'a, T>(&'a Bar<T>);

Keybase proof

I hereby claim:

  • I am rrohrer on github.
  • I am rainroar (https://keybase.io/rainroar) on keybase.
  • I have a public key ASD7fEh1TPMKAYoJoVYxFrgHzGFTdUo1qLfZGdZ5oUZn6go

To claim this, I am signing this object: