commit | f646928b25a0461ff11d4aba60522512a085d2d8 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Tue Apr 05 09:54:27 2022 -0700 |
committer | Linux Build Service Account <lnxbuild@localhost> | Tue Apr 05 09:54:27 2022 -0700 |
tree | c22a2a4a3c4a824d579ddc5e319617b0e29a30bc | |
parent | 33423fc27bb5ef793c1f124bd69f7e481eee2674 [diff] | |
parent | cabf6cd644e672bb4f25667f5fe9f7bd27cad5ec [diff] |
Merge cabf6cd644e672bb4f25667f5fe9f7bd27cad5ec on remote branch Change-Id: I9b9d4fae7cf29ac88c90a560d563b7e95fcbfd34
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