1
0
Fork 0
hmz007 6d24f2138b Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
..
README.md Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
enum-default-expanded.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
enum-default.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
not_unpin-expanded.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
not_unpin.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
pinned_drop-expanded.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
pinned_drop.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
project_replace-expanded.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
project_replace.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
struct-default-expanded.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
struct-default.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
unsafe_unpin-expanded.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
unsafe_unpin.rs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years 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.