commit | 4edefdf1946bfc110618a055a3ae45906814e86e | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Fri Nov 10 00:10:38 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Fri Nov 10 00:10:38 2023 +0000 |
tree | 42862a95d41484723727066fcd8dd5567412ddbb | |
parent | 282281a64feeb2d1c4bebcc24abfe161542c3a00 [diff] | |
parent | f182c4dc25cacfd3f2f2c7497202e3b3dc6015e4 [diff] |
Snap for 11078623 from f182c4dc25cacfd3f2f2c7497202e3b3dc6015e4 to 24Q1-release Change-Id: I0ff7995025a3a79796cee5bfacef5eea52cd27f3
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