pups_text 0.1.11

Pretty Understandable Parsers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright Rob Gage 2025

/// Represents text-based input that can be consumed by parsers
pub trait TextInput {

    /// Returns true if the `TextInput` starts with a given string
    fn starts_with(&self, string: &str) -> bool;

    /// Skips past a given number of bytes in the `TextInput`
    fn skip_bytes(&mut self, count: usize);

}