commit | c58ae55baae25327d3d992baf8694ede35607e01 | [log] [tgz] |
---|---|---|
author | Sam Saccone <[email protected]> | Tue Jul 18 21:29:36 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue Jul 18 21:29:36 2023 +0000 |
tree | 43d1af487b191089468faf1754ee0435408b6232 | |
parent | e06855e8168fd52a3e276453d1dfd216e2cd9b69 [diff] | |
parent | e84a8e4a137c624f026ba30988904d3adc6757c9 [diff] |
Move OWNER reference master=>main. am: 4cdc125034 am: 63e4a8bc35 am: e84a8e4a13 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2661252 Change-Id: I7f1212b82ba1424a755d921c7910a48967e57b2e 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