commit | 034275c6e23831b3a60adb0d89b842834e3f2e16 | [log] [tgz] |
---|---|---|
author | naure <naure@users.noreply.github.com> | Wed Feb 27 08:48:54 2019 +0100 |
committer | Robert <rw@users.noreply.github.com> | Tue Feb 26 23:48:54 2019 -0800 |
tree | d1add74de52f286d49a18963686e473351ac5b58 | |
parent | 4e5152d886de963162ae81282240bc5377fa10ce [diff] |
Rust: Fix lifetime in union _as_ accessors (#5140) * Fix lifetime in union _as_ accessors In the accessors for union field, the return value is implicitly taking the lifetime of &self. This is irrelevant and prevents usages of the returned value, because it is needlessly bound to the parent field lifetime. This patch makes the return value inherit the lifetime of the data, like other methods do.
FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.
Go to our landing page to browse our documentation.
and more in progress...
flatbuffers
tag for any questions regarding FlatBuffers.To contribute to this project, see CONTRIBUTING.
Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.