arc-ext
Extensions for Arc<T> such as field projection.
Usage
The ArcExt trait implementation extends Arc<T> with .project and .project_option methods.
The projection enforces lifetimes, so that no reference to it can outlive the projection (and therefore is not unsound).
See the following example:
use ArcExt;
License
This project is licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.