Struct csv::FromUtf8Error
source · [−]pub struct FromUtf8Error { /* private fields */ }
Expand description
A UTF-8 validation error during record conversion.
This occurs when attempting to convert a ByteRecord
into a
StringRecord
.
Implementations
sourceimpl FromUtf8Error
impl FromUtf8Error
sourcepub fn into_byte_record(self) -> ByteRecord
pub fn into_byte_record(self) -> ByteRecord
Access the underlying ByteRecord
that failed UTF-8 validation.
sourcepub fn utf8_error(&self) -> &Utf8Error
pub fn utf8_error(&self) -> &Utf8Error
Access the underlying UTF-8 validation error.
Trait Implementations
sourceimpl Clone for FromUtf8Error
impl Clone for FromUtf8Error
sourcefn clone(&self) -> FromUtf8Error
fn clone(&self) -> FromUtf8Error
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FromUtf8Error
impl Debug for FromUtf8Error
sourceimpl Display for FromUtf8Error
impl Display for FromUtf8Error
sourceimpl Error for FromUtf8Error
impl Error for FromUtf8Error
sourcefn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl PartialEq<FromUtf8Error> for FromUtf8Error
impl PartialEq<FromUtf8Error> for FromUtf8Error
sourcefn eq(&self, other: &FromUtf8Error) -> bool
fn eq(&self, other: &FromUtf8Error) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FromUtf8Error) -> bool
fn ne(&self, other: &FromUtf8Error) -> bool
This method tests for !=
.
impl Eq for FromUtf8Error
impl StructuralEq for FromUtf8Error
impl StructuralPartialEq for FromUtf8Error
Auto Trait Implementations
impl RefUnwindSafe for FromUtf8Error
impl Send for FromUtf8Error
impl Sync for FromUtf8Error
impl Unpin for FromUtf8Error
impl UnwindSafe for FromUtf8Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more