pub struct Spec {
pub addr: u64,
/* private fields */
}Expand description
One declared expectation for a function, checked against the binary’s facts.
Fields§
§addr: u64Implementations§
Source§impl Spec
impl Spec
pub fn new(addr: u64) -> Spec
Sourcepub fn calls_exact(self, t: &[u64]) -> Spec
pub fn calls_exact(self, t: &[u64]) -> Spec
Declared CALL set must EQUAL the binary’s (flags hallucinated + missing).
Sourcepub fn calls_superset(self, t: &[u64]) -> Spec
pub fn calls_superset(self, t: &[u64]) -> Spec
No declared CALL may be absent (hallucination-only; tolerates inlined/unported).
Sourcepub fn fields(self, t: &[u64]) -> Spec
pub fn fields(self, t: &[u64]) -> Spec
Each declared field offset must be touched by the binary (present-check).
pub fn globals(self, t: &[u64]) -> Spec
pub fn vtables(self, t: &[u64]) -> Spec
pub fn vcall_slots(self, t: &[u64]) -> Spec
Sourcepub fn indirect_targets(self, t: &[u64]) -> Spec
pub fn indirect_targets(self, t: &[u64]) -> Spec
Declared stack-slot/register indirect-call targets (acceptance-only).
pub fn iat(self, t: &[u64]) -> Spec
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnsafeUnpin for Spec
impl UnwindSafe for Spec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more