Crate offset

Source
Expand description

§Glorified offsets for arbitrary structures

Why write foo.bar, when you could write offset_of!(<Foo>::bar).index_in(foo)?

Macros§

field_ptr
Returns a pointer to a field of a base pointer.
offset_of
Constructs an offset from a type and a field name.

Structs§

Offset
An offset, representing a value of type Field into a value of type Base.

Traits§

DescribeOffset