pub struct ConvertBytesError { /* private fields */ }
Expand description
Error returned when a platform string cannot be converted to bytes or bytes cannot be converted to a platform string.
On unix-like platforms, this error is never returned. On Windows platforms, platform strings can only be converted to byte vectors (and conversely byte vectors to platform strings) when they contain valid UTF-8 contents.
This error is returned by bytes_to_os_str
, os_string_to_bytes
and
os_str_to_bytes
. See their documentation for more details.
Implementations§
Trait Implementations§
Source§impl Clone for ConvertBytesError
impl Clone for ConvertBytesError
Source§fn clone(&self) -> ConvertBytesError
fn clone(&self) -> ConvertBytesError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConvertBytesError
impl Debug for ConvertBytesError
Source§impl Default for ConvertBytesError
impl Default for ConvertBytesError
Source§fn default() -> ConvertBytesError
fn default() -> ConvertBytesError
Returns the “default value” for a type. Read more
Source§impl Display for ConvertBytesError
impl Display for ConvertBytesError
Source§impl Error for ConvertBytesError
impl Error for ConvertBytesError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Hash for ConvertBytesError
impl Hash for ConvertBytesError
Source§impl Ord for ConvertBytesError
impl Ord for ConvertBytesError
Source§fn cmp(&self, other: &ConvertBytesError) -> Ordering
fn cmp(&self, other: &ConvertBytesError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConvertBytesError
impl PartialEq for ConvertBytesError
Source§impl PartialOrd for ConvertBytesError
impl PartialOrd for ConvertBytesError
impl Copy for ConvertBytesError
impl Eq for ConvertBytesError
impl StructuralPartialEq for ConvertBytesError
Auto Trait Implementations§
impl Freeze for ConvertBytesError
impl RefUnwindSafe for ConvertBytesError
impl Send for ConvertBytesError
impl Sync for ConvertBytesError
impl Unpin for ConvertBytesError
impl UnwindSafe for ConvertBytesError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more