1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#![deny(unused_must_use)]
#![deny(unsafe_code)]
#![cfg_attr(not(debug_assertions), deny(clippy::dbg_macro))]
use std::io::{self, Read, Seek, SeekFrom};
#[macro_use]
extern crate num_derive;
#[macro_use]
pub(crate) mod macros;
pub(crate) mod utils;
pub mod err;
pub mod guid;
pub mod ntfs;
pub mod security;
pub mod timestamp;
pub trait ReadSeek: Read + Seek {
fn tell(&mut self) -> io::Result<u64> {
self.seek(SeekFrom::Current(0))
}
}
impl<T: Read + Seek> ReadSeek for T {}