Skip to content

Commit

Permalink
feat(stream)!: Enforce Offset<Checkpoint> is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jun 26, 2023
1 parent 8b3a1bc commit ade7912
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ where
}

/// Core definition for parser input state
pub trait Stream: Offset + Clone + crate::lib::std::fmt::Debug {
pub trait Stream:
Offset<<Self as Stream>::Checkpoint> + Offset + Clone + crate::lib::std::fmt::Debug
{
/// The smallest unit being parsed
///
/// Example: `u8` for `&[u8]` or `char` for `&str`
Expand Down

0 comments on commit ade7912

Please sign in to comment.