-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a lines
iterator method on LineString
.
#160
Conversation
011c180
to
c20685c
Compare
/// ); | ||
/// assert!(lines.next().is_none()); | ||
/// ``` | ||
pub fn lines<'a>(&'a self) -> Box<Iterator<Item = Line<T>> + 'a> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can get rid of this Box
once we can do -> impl Iterator<...>
in stable rust
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍👍 Will amend #159
Actually one sec, gonna incorporate this a bunch of places |
We have a bunch of tests that have invalid LineStrings with <2 points. So we'll return an empty iterator to make them pass.
One test failure:
hmmmmmm |
bors r+ |
Build succeeded |
No description provided.