commit | 4cdc1250347a01496442f1c6399c991469578dee | [log] [tgz] |
---|---|---|
author | Sam Saccone <[email protected]> | Tue Jul 18 17:49:32 2023 +0000 |
committer | Sam Saccone <[email protected]> | Tue Jul 18 17:49:32 2023 +0000 |
tree | 43d1af487b191089468faf1754ee0435408b6232 | |
parent | 670e2b1bc5ad36bea932126b555883e801ef6797 [diff] |
Move OWNER reference master=>main. BUG=b/291759353 Change-Id: I849582255275a7fe2867a8bb47d0fa437b2cc4c6
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