commit | 362154a4de7d17d2812cebae917f2efb981aac68 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <[email protected]> | Wed Feb 01 12:15:10 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Feb 01 12:15:10 2023 +0000 |
tree | b727f210535f96caa1dcc76895ad52fc02408c41 | |
parent | b6197d85ad327c4d2df52ca42cbd67c899f12e1d [diff] | |
parent | d4b9a9584307942800fd56985d011eaf84dbd133 [diff] |
Update TEST_MAPPING am: 4f0b0a101d am: d7e21bacf9 am: d4b9a95843 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2411540 Change-Id: I7c6f3a2e2500ddee78a23e853ca2abad6f49b6ff 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