commit | 45aa9a4157d850671c5f8a3d11280a71bc48e4d6 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue May 31 17:23:44 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue May 31 17:23:44 2022 +0000 |
tree | 5a3edbbca594df4f8416a564a5552a77d97748bb | |
parent | 5d803ade1c2b3325acd6fb00d1f31217030703a6 [diff] | |
parent | d8fd133e547a98962ec6b0b0e782db9498bca7b1 [diff] |
Merge "Update TEST_MAPPING" am: 43cc63f8c9 am: ebb0cc619c am: d8fd133e54 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2106889 Change-Id: I4fa6e0a9eff2ff378c154e47251e2070d251f412 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Simple, Low-level I/O traits
This crate provides two simple traits: Read
and Write
. These traits mimic their counterparts in std::io
, but are trimmed for simplicity and can be used in no_std
and no_alloc
environments. Since this crate contains only traits, inline functions and unit structs, it should be a zero-cost abstraction.
If the std
feature is enabled, we provide blanket implementations for all std::io
types. If the alloc
feature is enabled, we provide implementations for Vec<u8>
. In all cases, you get implementations for byte slices. You can, of course, implement the traits for your own types.
License: Apache-2.0