Created
January 31, 2019 22:06
-
-
Save Kerollmops/fbce715e75044c50d1fffb065a576874 to your computer and use it in GitHub Desktop.
Generic function type thta is in fact a function pointer (`fn` != `Fn`)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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