commit | 23ea1360d64032eab1ee9090af216ec81b6e92ba | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu Aug 15 23:11:05 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu Aug 15 23:11:05 2024 +0000 |
tree | a31c71ec7f3fcc145934db6dc3189a605071b594 | |
parent | 0bf1b045dad1636a0a5e132849aea9780366f0c7 [diff] | |
parent | 16033f48e59cee520d0df751fc538e4a14969177 [diff] |
Snap for 12235414 from 16033f48e59cee520d0df751fc538e4a14969177 to 24Q4-release Change-Id: I0a8720d44ec1712e2c7b7604c2e25312e19fc77f
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