pub struct CellConversionError { /* private fields */ }Expand description
Cell-local reason why decoding a value failed.
This describes only the local conversion problem. Row, column, and value context live on CellDecodeError.
Implementations§
Source§impl CellConversionError
impl CellConversionError
Sourcepub fn new(reason: impl Into<Box<str>>) -> Self
pub fn new(reason: impl Into<Box<str>>) -> Self
Build a cell error with just a reason, equivalent to builder(reason).build().
pub fn builder(reason: impl Into<Box<str>>) -> CellConversionErrorBuilder
pub fn reason(&self) -> &str
pub fn source(&self) -> Option<&(dyn StdError + Send + Sync + 'static)>
Trait Implementations§
Source§impl Debug for CellConversionError
impl Debug for CellConversionError
Source§impl Display for CellConversionError
impl Display for CellConversionError
Source§impl Error for CellConversionError
impl Error for CellConversionError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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()
Auto Trait Implementations§
impl !RefUnwindSafe for CellConversionError
impl !UnwindSafe for CellConversionError
impl Freeze for CellConversionError
impl Send for CellConversionError
impl Sync for CellConversionError
impl Unpin for CellConversionError
impl UnsafeUnpin for CellConversionError
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