pub trait SpecimenFile {
const MAGIC: &'static [&'static [u8]];
// Required method
fn type_name(&self) -> &'static str;
}Expand description
Common functions for all file types parsed by Malware DB
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl SpecimenFile for Office95<'_>
Available on crate feature office95 only.
impl SpecimenFile for Office95<'_>
Available on crate feature
office95 only.Source§impl SpecimenFile for PDF<'_>
Available on crate feature pdf only.
impl SpecimenFile for PDF<'_>
Available on crate feature
pdf only.Source§impl SpecimenFile for Rtf<'_>
Available on crate feature rtf only.
impl SpecimenFile for Rtf<'_>
Available on crate feature
rtf only.Source§impl SpecimenFile for Elf<'_>
Available on crate feature elf only.
impl SpecimenFile for Elf<'_>
Available on crate feature
elf only.Source§impl SpecimenFile for FatMacho<'_>
Available on crate feature macho only.
impl SpecimenFile for FatMacho<'_>
Available on crate feature
macho only.Source§impl SpecimenFile for Macho<'_>
Available on crate feature macho only.
impl SpecimenFile for Macho<'_>
Available on crate feature
macho only.Source§impl SpecimenFile for EXE<'_>
Available on crate feature pe32 only.
impl SpecimenFile for EXE<'_>
Available on crate feature
pe32 only.