commit | 4f0b0a101d3076145802b181fcd60c3a015464e1 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <[email protected]> | Wed Feb 01 08:55:05 2023 +0100 |
committer | Jeff Vander Stoep <[email protected]> | Wed Feb 01 08:55:05 2023 +0100 |
tree | b727f210535f96caa1dcc76895ad52fc02408c41 | |
parent | 873ef6863bff097a38f83823ba7a9058ce502f1d [diff] |
Update TEST_MAPPING Test: atest Change-Id: I5b746ac0c456d02414f5473190cd137af17a8a41
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