commit | 3d0004928071790dbf36b11c3b716d2bcc8a669c | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu Feb 10 02:06:14 2022 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu Feb 10 02:06:14 2022 +0000 |
tree | 9df07ed699ae737f023a757b7f5e8e70dfe7c292 | |
parent | 49e0a9a32cbb7dcec519861dd0a337b135bca96b [diff] | |
parent | da4456e91bba34e643cc15ef60f37b57045442e1 [diff] |
Snap for 8167364 from da4456e91bba34e643cc15ef60f37b57045442e1 to tm-release Change-Id: Id30f19e71524efe583ad84136dce2e2cf3ac569b
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