fish-shell/fish-rust
Mahmoud Al-Qudsi d32fee74f9 Add Projection type
This can be used when you primarily want to return a reference but in order for
that reference to live long enough it must be returned with an object.

i.e. given `Mutex<Foo { bar }>` you want a function to lock the mutex and return
a reference to `bar` but you can't return that reference since it has a lifetime
dependency on `MutexGuard` (which only derefs to all of `Foo` and not just
`bar`). You can return a `Projection` owning the `MutexGuard<Foo>` and set it up
to deref to `&bar`.
2023-05-25 16:47:59 -05:00
..
src Add Projection type 2023-05-25 16:47:59 -05:00
widestring-suffix Initial Rust commit 2023-02-02 19:34:47 -07:00
build.rs build.rs: Remove miette dependency 2023-05-25 17:46:03 +02:00
Cargo.lock build.rs: Remove miette dependency 2023-05-25 17:46:03 +02:00
Cargo.toml build.rs: Remove miette dependency 2023-05-25 17:46:03 +02:00