from_repr

This commit is contained in:
Jessi
2024-06-10 14:28:36 -04:00
parent a474488585
commit 4c0f94bd48
3 changed files with 79 additions and 4 deletions

View File

@@ -32,9 +32,6 @@ pub mod win32;
#[cfg(feature = "win32")]
pub use win32::{ image_base, image_header, find_kernel32, process_executable };
/// re-export the signature macro
pub use xgen::signature;
mod time;
pub use time::dur;
@@ -45,4 +42,12 @@ mod strings;
pub use strings::*;
mod iter_tools;
pub use iter_tools::*;
pub use iter_tools::*;
/// re-export the signature macro
pub use xgen::signature;
pub use xgen::FromRepr;
pub trait FromRepr: Sized {
type Repr;
fn from_repr(repr: Self::Repr) -> Option<Self>;
}