commit | 7caff7e231995ad1100580114094e8f0df5ca26e | [log] [tgz] |
---|---|---|
author | Treehugger Robot <[email protected]> | Wed Jun 15 22:28:21 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Jun 15 22:28:21 2022 +0000 |
tree | 6893ed330790aae053f2788b99cf971e5d559e79 | |
parent | 454332182aa8ba8eca974068598a196574286cd9 [diff] | |
parent | 140cd8033a3916d9fb6e43364d41ea94563fd979 [diff] |
Merge "Update TEST_MAPPING" am: 1648223314 am: ed6d656f1b am: a5d48b207c am: 140cd8033a Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2125793 Change-Id: I01f42cfa992b65d9e97610eba72df7ee2a44f779 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