[roll] Roll fuchsia [fidl][rust] Support encoding by value and ref

This change introduces the `EncodeRef` trait and changes the signature
of `Encode`. `Encode` now accepts self by value and `EncodeRef` accepts
`&self`. Because `Encode` is implemented for `&T` when `T: EncodeRef`,
this allows encoding to support encoding resource types by value and
non-resource types by reference with a single API surface.

With this change, not only can FIDL requests and responses be encoded
via references, but ordinary slices and `str`s can now be encoded as
wire vectors and strings.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1255645
Original-Revision: 3702833ec1101c6e5ce26df2c7b25c80e94111fb
GitOrigin-RevId: 0cfccf649b683b398344b806c57843378dce3a26
Change-Id: Ica0c3b8c8633fc291ab6779fa2eeaee9e26cd76e
1 file changed
tree: e6b333806ad91e1c74869cdad2f3ae5c3390f8aa
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.