Skip to content
No description, website, or topics provided.
Rust
Branch: master
Clone or download
KrishnaSannasi changed unions over to `raw_ref_op` (#22)
* changed unions over to `raw_ref_op`

* cargo fmt
Latest commit 9fa7e5b Jan 24, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows fix actions (#23) Jan 25, 2020
core changed unions over to `raw_ref_op` (#22) Jan 25, 2020
derive changed unions over to `raw_ref_op` (#22) Jan 25, 2020
.gitignore massive restructuring to reorganize the code Sep 29, 2019
CONTRIBUTING.md added a README and CONTRIBUTING Sep 27, 2019
Cargo.toml Implement a proc-macro derive to specify field projections safely (#5) Sep 29, 2019
LICENSE Create LICENSE Sep 26, 2019
README.md

README.md

generic-field-projection

This is a general purpose projection library that doesn't special case any pointer type except for raw pointers. This makes the UX for all smart pointers the same, and more consistent.

This workspace is a proof of concept for the pointer to field concept discussed in this Rust Internals discussion, and the RFC.

Disclaimer: This workspace does not intend to be a fully fledged implementation, and will likely be missing many key features to making the pointer to field idea truly work.

Basic sketch of how this workspace works:

#[derive(Field)]     // This derive is given in the ptr-to-field-macro crate
struct Foo {
    pub names: String,
    bar: Bar,
}

// TODO: Finish README

Contributing

See CONTRIBUTING.md

You can’t perform that action at this time.