commit | 73954f4d1ee328041a60ce4c23963c355c5c2d58 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Sun Sep 15 07:09:00 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Sun Sep 15 07:09:00 2024 +0000 |
tree | a31c71ec7f3fcc145934db6dc3189a605071b594 | |
parent | 9878d99d6f0dda0c088553634d45ce855927cd8b [diff] | |
parent | 619bff77328d9413e08abf9ab999dd1b3cec218c [diff] |
Snap for 12356763 from 619bff77328d9413e08abf9ab999dd1b3cec218c to busytown-mac-infra-release Change-Id: Idbf2cd1dd9bb3f45a5eade591081fb7e8b7b98be
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