pub trait MovePtr { fn move_ptr(&mut self, adjustment: &fn(*c_void) -> *c_void); fn push_ptr(&mut self); fn pop_ptr(&mut self); }
Trait for visitor that wishes to reflect on data. To use this, create a
struct that encapsulates the set of pointers you wish to walk through a
data structure, and implement both MovePtr
for it as well as TyVisitor
;
then build a MovePtrAdaptor wrapped around your struct.
fn move_ptr(&mut self, adjustment: &fn(*c_void) -> *c_void)
fn push_ptr(&mut self)
fn pop_ptr(&mut self)
ReprVisitor<'self>
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).