commit | 454332182aa8ba8eca974068598a196574286cd9 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <[email protected]> | Tue May 31 17:58:51 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue May 31 17:58:51 2022 +0000 |
tree | 5a3edbbca594df4f8416a564a5552a77d97748bb | |
parent | 02fa4f8913d854db9395d72a96fab8402cac9952 [diff] | |
parent | 45aa9a4157d850671c5f8a3d11280a71bc48e4d6 [diff] |
Merge "Update TEST_MAPPING" am: 43cc63f8c9 am: ebb0cc619c am: d8fd133e54 am: 45aa9a4157 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2106889 Change-Id: Id282f6d8b80ecbbca4bda233d219fd25f96f6c73 Signed-off-by: Automerger Merge Worker <[email protected]>
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