Skip to content

Instantly share code, notes, and snippets.

@lkuper
Created June 5, 2012 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lkuper/2878640 to your computer and use it in GitHub Desktop.
Save lkuper/2878640 to your computer and use it in GitHub Desktop.
type circular_buf<T> = {start: uint,
end: uint,
buf: [mut T]
};
fn make_circle<T>(s: uint, e: uint, +b: [mut T]) -> circular_buf<T> {
ret {start: s, end: e, buf: b };
}
fn main() { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment