Lines Matching defs:std
22 //! fn from_hex(input: &str) -> Result<u8, std::num::ParseIntError> {
233 //! use std::str;
374 #![cfg_attr(not(feature = "std"), no_std)]
389 /// Lib module to re-export everything needed from `std` or `core`/`alloc`. This is how `serde` does
393 /// `std` facade allowing `std`/`core` to be interchangeable. Reexports `alloc` crate optionally,
394 /// as well as `core` or `std`
395 #[cfg(not(feature = "std"))]
397 /// internal std exports for no_std compatibility
398 pub mod std {
410 /// internal reproduction of std prelude
417 #[cfg(feature = "std")]
419 /// internal std exports for no_std compatibility
420 pub mod std {
422 pub use std::{
427 /// internal reproduction of std prelude
430 pub use std::prelude as v1;