summaryrefslogtreecommitdiff
path: root/src/scanner.rs
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2023-07-29 20:55:12 -0400
committerBotahamec <botahamec@outlook.com>2023-07-29 20:55:12 -0400
commitb51fc330303cca2183dde31f59934d9d038003fb (patch)
tree5ec1dca14f69973b4f17424e8ac539e6e306a6ef /src/scanner.rs
parentef48f419b671dfb0da0a589b1823cc81b6fa71d1 (diff)
Initialize the scanner type
Diffstat (limited to 'src/scanner.rs')
-rw-r--r--src/scanner.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/scanner.rs b/src/scanner.rs
new file mode 100644
index 0000000..83f68e3
--- /dev/null
+++ b/src/scanner.rs
@@ -0,0 +1,11 @@
+use std::io::Read;
+
+pub struct Scanner<Source: Read> {
+ source: Source,
+}
+
+impl<Source: Read> Scanner<Source> {
+ pub fn new(source: Source) -> Self {
+ Self { source }
+ }
+}