#[non_exhaustive]pub enum TableError {
NonFlattenableHeader {
column: usize,
},
NonFlattenableCell {
row: usize,
column: usize,
},
ChoiceBearingHeader {
column: usize,
},
ChoiceBearingCell {
row: usize,
column: usize,
},
}Expand description
Failure while compiling a table to ordinary document nodes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonFlattenableHeader
A header has no single-line projection.
NonFlattenableCell
A body cell has no single-line projection.
ChoiceBearingHeader
A header contains a layout choice, which table measurement forbids.
ChoiceBearingCell
A body cell contains a layout choice, which table measurement forbids.
Implementations§
Source§impl TableError
impl TableError
Sourcepub const fn kind(&self) -> TableErrorKind
pub const fn kind(&self) -> TableErrorKind
Return the stable category of this error.
Trait Implementations§
Source§impl Clone for TableError
impl Clone for TableError
Source§impl Debug for TableError
impl Debug for TableError
Source§impl Display for TableError
impl Display for TableError
impl Eq for TableError
Source§impl Error for TableError
impl Error for TableError
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 PartialEq for TableError
impl PartialEq for TableError
impl StructuralPartialEq for TableError
Auto Trait Implementations§
impl Freeze for TableError
impl RefUnwindSafe for TableError
impl Send for TableError
impl Sync for TableError
impl Unpin for TableError
impl UnsafeUnpin for TableError
impl UnwindSafe for TableError
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