4 releases

0.1.4 Oct 2, 2022
0.1.3 Dec 3, 2020
0.1.2 Dec 3, 2020
0.1.1 Dec 3, 2020
0.1.0 Dec 3, 2020

#1926 in Data structures

Download history 30/week @ 2024-08-26 7/week @ 2024-09-09 2/week @ 2024-09-16 27/week @ 2024-09-23 10/week @ 2024-09-30 12/week @ 2024-10-14 48/week @ 2024-10-21 3/week @ 2024-10-28 31/week @ 2024-11-04 13/week @ 2024-11-11 3/week @ 2024-11-18 13/week @ 2024-11-25 66/week @ 2024-12-02 24/week @ 2024-12-09

107 downloads per month
Used in 2 crates

Apache-2.0 OR MIT

10KB
183 lines

Offset

This crate defines a glorified offset type suitable for arbitrary structs.

I'm way too lazy to say anything more about this right now.

Licensing

This crate is licensed under both the Apache 2.0 and MIT licenses, so you are free to do whatever you want with it as long as you respect the terms from these two.

If you are a highly paid worker at Google, Facebook, Apple, Amazon, Microsoft, Palantir, Uber, Airbnb, Deliveroo, or any other company that prioritises profit over people as strongly as they do, you can still use this crate. I simply wish you will unionise and push back against the obsession for growth, control, and power that is rampant in your workplace. Please take a stand against the horrible working conditions they inflict on your lesser paid colleagues, and more generally their gross disrespect for the very human rights they claim to fight for.


lib.rs:

Glorified offsets for arbitrary structures

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

No runtime deps