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