trisquel-icecat/icecat/third_party/rust/pin-project/examples
2025-07-17 09:32:21 -06:00
..
enum-default-expanded.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
enum-default.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
not_unpin-expanded.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
not_unpin.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
pinned_drop-expanded.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
pinned_drop.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
project_replace-expanded.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
project_replace.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
README.md icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
struct-default-expanded.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
struct-default.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
unsafe_unpin-expanded.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
unsafe_unpin.rs icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00

Examples and generated code of each feature of pin-project

Basic usage of #[pin_project] on structs

Basic usage of #[pin_project] on enums

Manual implementation of Unpin by UnsafeUnpin

Manual implementation of Drop by #[pinned_drop]

project_replace() method

Ensure !Unpin by #[pin_project(!Unpin)]

Note: These generated code examples are the little simplified version of the actual generated code. See expansion tests if you want to see the exact version of the actual generated code.