Welcome to mirror list, hosted at ThFree Co, Russian Federation.

lib.rs « src - github.com/windirstat/mft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d9e3383c26d1b2e4922308cd458ab9a8be140827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[macro_use]
extern crate num_derive;

use std::io::{self, Read, Seek, SeekFrom};

pub mod attribute;
pub mod entry;
pub mod enumerator;
pub mod err;
pub mod mft;

pub(crate) mod utils;

pub trait ReadSeek: Read + Seek {
    fn tell(&mut self) -> io::Result<u64> {
        self.seek(SeekFrom::Current(0))
    }
}

impl<T: Read + Seek> ReadSeek for T {}