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