commit | c809b61013edef983488800b8d6de4cc471dcac9 | [log] [tgz] |
---|---|---|
author | David LeGare <[email protected]> | Thu Mar 03 13:47:06 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Mar 03 13:47:06 2022 +0000 |
tree | c22a2a4a3c4a824d579ddc5e319617b0e29a30bc | |
parent | 295e55c85f430eab8e2d67c7f61c0e3892accdeb [diff] | |
parent | 49fd1281f1eed8819d39eb34183143bb3f1c5064 [diff] |
Update TEST_MAPPING am: 49fd1281f1 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2004806 Change-Id: Ief20599432b1c22bb4968c9011d23cad9e2c20f7
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