Lines Matching defs:for
2 //! [`OsString`], without resorting to panics or corruption for invalid UTF-8.
19 //! intentionally left unspecified. It may vary for different platforms, so
42 //! not be used for storage. The standard library provides implementations of
43 //! [`OsStrExt`] and [`OsStringExt`] for various platforms, which should be
44 //! preferred for that use case.
55 //! for user input. But, they reject some byte sequences used to represent
56 //! valid platform strings, which would be undesirable for reliable path
70 //! Changes the implementation to use crate [memchr] for better performance.
98 //! Provides implementations of [`print_bytes::ToBytes`] for [`RawOsStr`] and
102 //! Provides implementations of [`uniquote::Quote`] for [`RawOsStr`] and
107 //! Some methods return [`Cow`] to account for platform differences. However,
109 //! returned for the same platform. Whichever can be constructed most
114 //! maintain for new features.
119 //! available for the platform. At worst, they will all be linear, but some can
147 //! for file in env::args_os().skip(1) {
170 // Only require a nightly compiler when building documentation for docs.rs.
175 // Nightly is also currently required for the SGX platform.
280 /// properly encoded for the platform, since [the module-level
300 impl Display for EncodingError {
307 impl Error for EncodingError {}
341 /// Panics if the string is not valid for the [unspecified encoding] used
361 #[must_use = "method should not be used for validation"]
377 /// See documentation for [`EncodingError`].
426 impl OsStrBytes for OsStr {
449 impl OsStrBytes for Path {
483 /// Panics if the string is not valid for the [unspecified encoding] used
503 #[must_use = "method should not be used for validation"]
517 /// See documentation for [`EncodingError`].
564 impl OsStringBytes for OsString {
581 impl OsStringBytes for PathBuf {
612 impl Sealed for char {}
613 impl Sealed for OsStr {}
614 impl Sealed for OsString {}
615 impl Sealed for Path {}
616 impl Sealed for PathBuf {}
617 impl Sealed for &str {}
618 impl Sealed for &String {}
621 impl Sealed for Cow<'_, RawOsStr> {}