commit | 49fd1281f1eed8819d39eb34183143bb3f1c5064 | [log] [tgz] |
---|---|---|
author | David LeGare <[email protected]> | Wed Mar 02 21:32:09 2022 +0000 |
committer | David LeGare <[email protected]> | Wed Mar 02 22:27:21 2022 +0000 |
tree | c22a2a4a3c4a824d579ddc5e319617b0e29a30bc | |
parent | c81d500f6161bd8e6ec3a67be52f5950097dd50e [diff] |
Update TEST_MAPPING Test: cd external/rust/crates && atest --host -c Change-Id: I2b2f02243d67ec910a3117b8d0cc9909ac9bf692
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