aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2021-01-05 21:36:23 -0800
committerHaibo Huang <hhb@google.com>2021-01-05 21:36:23 -0800
commit803535edf46cf1e4d0b092b6b2e52ae776b41711 (patch)
treeb4a59a0bf295d7cc3837dd372b5068cb95023fc6 /examples
parent438febf9aeb3ae1f64584c3e316bde5abe74c6ed (diff)
downloadpin-project-803535edf46cf1e4d0b092b6b2e52ae776b41711.tar.gz
Upgrade rust/crates/pin-project to 1.0.3
Test: make Change-Id: I40b14687ddecaafea9fb37915b89a22937816bb6
Diffstat (limited to 'examples')
-rw-r--r--examples/README.md37
1 files changed, 19 insertions, 18 deletions
diff --git a/examples/README.md b/examples/README.md
index 3f0d87e..9324dc6 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -2,37 +2,38 @@
### Basic usage of `#[pin_project]` on structs
- * [example](struct-default.rs)
- * [generated code](struct-default-expanded.rs)
+- [example](struct-default.rs)
+- [generated code](struct-default-expanded.rs)
### Basic usage of `#[pin_project]` on enums
- * [example](enum-default.rs)
- * [generated code](enum-default-expanded.rs)
+- [example](enum-default.rs)
+- [generated code](enum-default-expanded.rs)
### Manual implementation of `Unpin` by `UnsafeUnpin`
- * [example](unsafe_unpin.rs)
- * [generated code](unsafe_unpin-expanded.rs)
- * [`UnsafeUnpin` documentation](https://docs.rs/pin-project/1/pin_project/trait.UnsafeUnpin.html)
+- [example](unsafe_unpin.rs)
+- [generated code](unsafe_unpin-expanded.rs)
+- [`UnsafeUnpin` documentation](https://docs.rs/pin-project/1/pin_project/trait.UnsafeUnpin.html)
### Manual implementation of `Drop` by `#[pinned_drop]`
- * [example](pinned_drop.rs)
- * [generated code](pinned_drop-expanded.rs)
- * [`#[pinned_drop]` documentation](https://docs.rs/pin-project/1/pin_project/attr.pinned_drop.html)
+- [example](pinned_drop.rs)
+- [generated code](pinned_drop-expanded.rs)
+- [`#[pinned_drop]` documentation](https://docs.rs/pin-project/1/pin_project/attr.pinned_drop.html)
### `project_replace()` method
- * [example](project_replace.rs)
- * [generated code](project_replace-expanded.rs)
- * [`project_replace()` documentation](https://docs.rs/pin-project/1/pin_project/attr.pin_project.html#project_replace)
+- [example](project_replace.rs)
+- [generated code](project_replace-expanded.rs)
+- [`project_replace()` documentation](https://docs.rs/pin-project/1/pin_project/attr.pin_project.html#project_replace)
### Ensure `!Unpin` by `#[pin_project(!Unpin)]`
- * [example](not_unpin.rs)
- * [generated code](not_unpin-expanded.rs)
- * [`!Unpin` documentation](https://docs.rs/pin-project/1/pin_project/attr.pin_project.html#unpin)
+- [example](not_unpin.rs)
+- [generated code](not_unpin-expanded.rs)
+- [`!Unpin` documentation](https://docs.rs/pin-project/1/pin_project/attr.pin_project.html#unpin)
-Note: These generated code examples are the little simplified version of the actual generated code.
-See [expansion tests](../tests/expand/README.md) if you want to see the exact version of the actual generated code.
+Note: These generated code examples are the little simplified version of the
+actual generated code. See [expansion tests](../tests/expand/README.md) if you
+want to see the exact version of the actual generated code.