lifetime
This commit is contained in:
@ -87,7 +87,7 @@ pub struct Unicorn<'a, D: 'a> {
|
|||||||
pub data: D,
|
pub data: D,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Unicorn<()> {
|
impl<'a> Unicorn<'a, ()> {
|
||||||
/// Create a new instance of the unicorn engine for the specified architecture
|
/// Create a new instance of the unicorn engine for the specified architecture
|
||||||
/// and hardware mode.
|
/// and hardware mode.
|
||||||
pub fn new(arch: Arch, mode: Mode) -> Result<Unicorn<'a, ()>, uc_error> {
|
pub fn new(arch: Arch, mode: Mode) -> Result<Unicorn<'a, ()>, uc_error> {
|
||||||
|
Reference in New Issue
Block a user