mft 0.7.0

A Fast (and safe) parser for the Windows Master File Table (MFT) format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[macro_export]
macro_rules! impl_serialize_for_bitflags {
    ($flags: ident) => {
        impl serde::ser::Serialize for $flags {
            fn serialize<S>(&self, serializer: S) -> ::std::result::Result<S::Ok, S::Error>
            where
                S: serde::ser::Serializer,
            {
                // Stream the Debug output directly to the serializer without allocating
                // an intermediate String. This is faster than `serialize_str(&format!(...))`.
                serializer.collect_str(&format_args!("{:?}", &self))
            }
        }
    };
}