Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
rust
/
crates
/
pin-project
/
94f760e4ccbda8cbce697efe4612222b9b1866b5
/
.
/
examples
tree: d56e46ba8b407f6f566b319f580b3a47070293ff [
path history
]
[
tgz
]
enum-default-expanded.rs
enum-default.rs
not_unpin-expanded.rs
not_unpin.rs
pinned_drop-expanded.rs
pinned_drop.rs
project_replace-expanded.rs
project_replace.rs
README.md
struct-default-expanded.rs
struct-default.rs
unsafe_unpin-expanded.rs
unsafe_unpin.rs
examples/README.md
Examples and generated code of each feature of pin-project
Basic usage of
#[pin_project]
on structs
example
generated code
Basic usage of
#[pin_project]
on enums
example
generated code
Manual implementation of
Unpin
by
UnsafeUnpin
example
generated code
UnsafeUnpin
documentation
Manual implementation of
Drop
by
#[pinned_drop]
example
generated code
#[pinned_drop]
documentation
project_replace()
method
example
generated code
project_replace()
documentation
Ensure
!Unpin
by
#[pin_project(!Unpin)]
example
generated code
!Unpin
documentation