Skip to content

Commit

Permalink
Merge pull request #443 from epage/connect
Browse files Browse the repository at this point in the history
docs(stream): Connect Location to Located
  • Loading branch information
epage authored Jan 31, 2024
2 parents 38791bd + 4f113c9 commit 1feb518
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,8 @@ impl<I: Stream> Stream for Partial<I> {
}

/// Number of indices input has advanced since start of parsing
///
/// See [`Located`] for adding location tracking to your [`Stream`]
pub trait Location {
/// Number of indices input has advanced since start of parsing
fn location(&self) -> usize;
Expand Down

0 comments on commit 1feb518

Please sign in to comment.