commit | 203a67d1df1d8f19184d0bb2c735a51fe4c47b85 | [log] [tgz] |
---|---|---|
author | Per Larsen <[email protected]> | Wed Jun 28 02:01:47 2023 +0000 |
committer | Per Larsen <[email protected]> | Tue Aug 01 06:12:14 2023 +0000 |
tree | 4b515cfe3e40933ea75e55641d4eca1ebb30c5ed | |
parent | eaeefa649040f31d5be71b1928a6bd8c1e84fdda [diff] |
Adding autogenerated Trusty makefile rules Bug: 281857510 Change-Id: I0092ab25c8e6cb4e9ef41d969e95475c1ed49591
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