Google Git
Sign in
fuchsia / fuchsia / 0c00fd3 / . / third_party / rust_crates / vendor / pin-project / examples
tree: f81406bb74cda5ca13e4f817d591cf27b62a84b2 [path history] [tgz]
  1. enum-default-expanded.rs
  2. enum-default.rs
  3. pinned_drop-expanded.rs
  4. pinned_drop.rs
  5. README.md
  6. struct-default-expanded.rs
  7. struct-default.rs
  8. unsafe_unpin-expanded.rs
  9. unsafe_unpin.rs
third_party/rust_crates/vendor/pin-project/examples/README.md

Examples and generated code of each feature of pin-project

  • Basic usage of #[pin_project] on structs. -- generated code

  • Basic usage of #[pin_project] on enums. -- generated code

  • Manual implementation of Unpin by UnsafeUnpin. -- generated code

  • Manual implementation of Drop by #[pinned_drop]. -- generated code

Powered by Gitiles| Privacy| Termstxt json