commit | ea9992805e2973667c97f214a3d212da2e2d1b3e | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Thu May 26 10:41:30 2022 -0700 |
committer | Matthew Maurer <mmaurer@google.com> | Thu May 26 10:41:30 2022 -0700 |
tree | 074a5a32f951a1ac4d87524f433ba2d69307c5e5 | |
parent | eaeefa649040f31d5be71b1928a6bd8c1e84fdda [diff] |
Update TEST_MAPPING Test: None Bug: 233924440 Change-Id: I61af32b865f81f864d6523bcf8994585a5c4bca6
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