commit | cf77f19cce871fa60a60b1086fb6609639ab35fa | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Wed Sep 04 15:32:00 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Wed Sep 04 15:32:00 2024 +0000 |
tree | a31c71ec7f3fcc145934db6dc3189a605071b594 | |
parent | 74228a254323ede37b0fe4898a750a558ec8fe9c [diff] | |
parent | eafbe659e7a105cecdde4f43b19dc9ccff6a6737 [diff] |
Snap for 12317862 from eafbe659e7a105cecdde4f43b19dc9ccff6a6737 to build-tools-release Change-Id: I56ef1dfc602e2bf8957429b88ff9e64b8a8bdb63
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