Struct os_str_bytes::EncodingError [−][src]
pub struct EncodingError(_);
Expand description
The error that occurs when a byte sequence is not representable in the platform encoding.
Result::unwrap
should almost always be called on results containing
this error. It should be known whether or not byte sequences are properly
encoded for the platform, since the module-level documentation
discourages using encoded bytes in interchange. Results are returned
primarily to make panicking behavior explicit.
On Unix, this error is never returned, but OsStrExt
or OsStringExt
should be used instead if that needs to be guaranteed.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.