diff options
| author | Botahamec <botahamec@outlook.com> | 2023-07-29 20:55:12 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2023-07-29 20:55:12 -0400 |
| commit | b51fc330303cca2183dde31f59934d9d038003fb (patch) | |
| tree | 5ec1dca14f69973b4f17424e8ac539e6e306a6ef /src/scanner.rs | |
| parent | ef48f419b671dfb0da0a589b1823cc81b6fa71d1 (diff) | |
Initialize the scanner type
Diffstat (limited to 'src/scanner.rs')
| -rw-r--r-- | src/scanner.rs | 11 |
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 } + } +} |
