Skip to content

Instantly share code, notes, and snippets.

@Kerollmops
Created January 31, 2019 22:06
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 Kerollmops/fbce715e75044c50d1fffb065a576874 to your computer and use it in GitHub Desktop.
Save Kerollmops/fbce715e75044c50d1fffb065a576874 to your computer and use it in GitHub Desktop.
Generic function type thta is in fact a function pointer (`fn` != `Fn`)
fn linear_group(&self) -> LinearGroupBy<T, fn(&T, &T) -> bool>
where T: Ord
{
LinearGroupBy::new(self, |a, b| a == b)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment