commit | f7c63f2836fab8af1669fa4dbc7ad0eacdb32702 | [log] [tgz] |
---|---|---|
author | Per Larsen <[email protected]> | Thu Nov 09 01:15:50 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Nov 09 01:15:50 2023 +0000 |
tree | 42862a95d41484723727066fcd8dd5567412ddbb | |
parent | 61200a127bdf4c3f8172baa024dcbf3ad278ae47 [diff] | |
parent | 8aa17fcaeb9274d36bebacb345e138658382331d [diff] |
Adding autogenerated Trusty makefile rules am: 4f87ec0658 am: 8aa17fcaeb Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2751865 Change-Id: I09e4a79c6d53e43c02d0c4989df8fe7e1230e480 Signed-off-by: Automerger Merge Worker <[email protected]>
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