Move buffered_input to an input module.

This commit is contained in:
Ethiraric 2024-07-04 18:25:01 +02:00
parent 65fcb6fde3
commit 0e9cee18f2
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
pub mod buffered;
#[allow(clippy::module_name_repetitions)]
pub use buffered::BufferedInput;
use crate::char_traits::is_blank_or_breakz;
/// Interface for a source of characters.

View file

@ -21,6 +21,7 @@ const BUFFER_LEN: usize = 16;
/// characters at a time and sometimes pushing some back into the stream.
/// There is no "easy" way of doing this without itertools. In order to avoid pulling the entierty
/// of itertools for one method, we use this structure.
#[allow(clippy::module_name_repetitions)]
pub struct BufferedInput<T: Iterator<Item = char>> {
/// The iterator source,
input: T,

View file

@ -32,7 +32,6 @@
#![warn(missing_docs, clippy::pedantic)]
mod buffered_input;
mod char_traits;
#[macro_use]
mod debug;
@ -40,6 +39,6 @@ mod input;
mod parser;
mod scanner;
pub use crate::buffered_input::BufferedInput;
pub use crate::input::BufferedInput;
pub use crate::parser::{Event, EventReceiver, MarkedEventReceiver, Parser, Tag};
pub use crate::scanner::{Marker, ScanError, TScalarStyle};