commit | f01789e651f35e7a551852bfb1da96ea13faabdf | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Sat Jul 08 04:31:29 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Sat Jul 08 04:31:29 2023 +0000 |
tree | 31ad1d3e82d4db3b019aa81fa63e3c71786ca8e7 | |
parent | 6676da31eef24c1a7ff7273e8ce566821b9c029b [diff] | |
parent | 91207e55f6d8999de4813b220981a2631bf08a6e [diff] |
Snap for 10460766 from 91207e55f6d8999de4813b220981a2631bf08a6e to mainline-healthfitness-release Change-Id: Ie4a1eeefefe2cd9ff98f243ec83309f9d3bdad12
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