pub enum UnicodeErrorObject {
Bytes(Vec<u8>),
Str(String),
}Expand description
The object attribute of a unicode error: the input being converted.
Variants§
Trait Implementations§
Source§impl Clone for UnicodeErrorObject
impl Clone for UnicodeErrorObject
Source§fn clone(&self) -> UnicodeErrorObject
fn clone(&self) -> UnicodeErrorObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnicodeErrorObject
impl Debug for UnicodeErrorObject
Source§impl<'de> Deserialize<'de> for UnicodeErrorObject
impl<'de> Deserialize<'de> for UnicodeErrorObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for UnicodeErrorObject
impl Hash for UnicodeErrorObject
Source§impl PartialEq for UnicodeErrorObject
impl PartialEq for UnicodeErrorObject
Source§impl Serialize for UnicodeErrorObject
impl Serialize for UnicodeErrorObject
impl StructuralPartialEq for UnicodeErrorObject
Auto Trait Implementations§
impl Freeze for UnicodeErrorObject
impl RefUnwindSafe for UnicodeErrorObject
impl Send for UnicodeErrorObject
impl Sync for UnicodeErrorObject
impl Unpin for UnicodeErrorObject
impl UnsafeUnpin for UnicodeErrorObject
impl UnwindSafe for UnicodeErrorObject
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