pub enum TabulateError {
UnknownFormat(String),
EmptyData,
InvalidHeadersForObjects,
UnsupportedHeaders(String),
IndexLengthMismatch {
expected: usize,
found: usize,
},
Serialization(String),
}Expand description
Errors emitted while attempting to render a table.
Variants§
UnknownFormat(String)
The requested table format is unknown.
EmptyData
Attempted to tabulate data that does not contain any rows.
InvalidHeadersForObjects
Provided explicit headers for a list of dict-like rows.
UnsupportedHeaders(String)
Attempted to use a headers variant that is not yet supported.
IndexLengthMismatch
Provided index values length does not match the number of data rows.
Fields
Serialization(String)
Converting user data into a tabular representation failed.
Trait Implementations§
Source§impl Debug for TabulateError
impl Debug for TabulateError
Source§impl Display for TabulateError
impl Display for TabulateError
Source§impl Error for TabulateError
impl Error for TabulateError
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()
Auto Trait Implementations§
impl Freeze for TabulateError
impl RefUnwindSafe for TabulateError
impl Send for TabulateError
impl Sync for TabulateError
impl Unpin for TabulateError
impl UnwindSafe for TabulateError
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