You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jianglk.darker 7ee447c011
v811_spc009_project
7 months ago
..
README.md v811_spc009_project 7 months ago
enum-default-expanded.rs v811_spc009_project 7 months ago
enum-default.rs v811_spc009_project 7 months ago
not_unpin-expanded.rs v811_spc009_project 7 months ago
not_unpin.rs v811_spc009_project 7 months ago
pinned_drop-expanded.rs v811_spc009_project 7 months ago
pinned_drop.rs v811_spc009_project 7 months ago
project_replace-expanded.rs v811_spc009_project 7 months ago
project_replace.rs v811_spc009_project 7 months ago
struct-default-expanded.rs v811_spc009_project 7 months ago
struct-default.rs v811_spc009_project 7 months ago
unsafe_unpin-expanded.rs v811_spc009_project 7 months ago
unsafe_unpin.rs v811_spc009_project 7 months ago

README.md

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.