commit | 7eac8c8e368940a4102abc9dc58c7f77e4e769c7 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu Aug 15 23:16:59 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu Aug 15 23:16:59 2024 +0000 |
tree | a31c71ec7f3fcc145934db6dc3189a605071b594 | |
parent | dfc5457f6ef0bd66a256c1b13c275b8d9dd966d2 [diff] | |
parent | 16033f48e59cee520d0df751fc538e4a14969177 [diff] |
Snap for 12235283 from 16033f48e59cee520d0df751fc538e4a14969177 to 25D4-release Change-Id: I31a1bc2f316035de78617415ad5fa02089c4d4da
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