Skip to content

Commit

Permalink
docs(stream): Connect Location to Located
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jan 31, 2024
1 parent 38791bd commit 4f113c9
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 4f113c9

Please sign in to comment.