Lines Matching defs:std
9 #[cfg(feature = "std")]
10 use std::error;
19 /// The error type for `rustix` APIs. This is similar to `std::io::Error`, but
31 /// Shorthand for `std::io::Error::from(self).kind()`.
32 #[cfg(feature = "std")]
34 pub fn kind(self) -> std::io::ErrorKind {
35 std::io::Error::from(self).kind()
41 #[cfg(feature = "std")]
43 std::io::Error::from(*self).fmt(fmt)
45 #[cfg(not(feature = "std"))]
54 #[cfg(feature = "std")]
56 std::io::Error::from(*self).fmt(fmt)
58 #[cfg(not(feature = "std"))]
65 #[cfg(feature = "std")]
68 #[cfg(feature = "std")]
69 impl From<Errno> for std::io::Error {