denyhosts/clamav/libclamav_rust/.cargo/vendor/pin-project/examples
2023-01-14 18:28:39 +08:00
..
enum-default-expanded.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
enum-default.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
not_unpin-expanded.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
not_unpin.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
pinned_drop-expanded.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
pinned_drop.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
project_replace-expanded.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
project_replace.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
README.md 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
struct-default-expanded.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
struct-default.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
unsafe_unpin-expanded.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
unsafe_unpin.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08: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.