Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/serde_json/src/io/mod.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / serde_json / src / io / mod.rs` 20 lines ยท 684 bytes Raw Blame History 1 //! A tiny, `no_std`-friendly facade around `std::io`. 2 //! Reexports types from `std` when available; otherwise reimplements and 3 //! provides some of the core logic. 4 //! 5 //! The main reason that `std::io` hasn't found itself reexported as part of 6 //! the `core` crate is the `std::io::{Read, Write}` traits' reliance on 7 //! `std::io::Error`, which may contain internally a heap-allocated `Box` 8 //! and/or now relying on OS-specific `std::backtrace::Backtrace`. 9 10 pub use self::imp::{Error, ErrorKind, Result, Write}; 11 12 #[cfg(not(feature = "std"))] 13 #[path = "core.rs"] 14 mod imp; 15 16 #[cfg(feature = "std")] 17 use std::io as imp; 18 19 #[cfg(feature = "std")] 20 pub use std::io::{Bytes, Read};