pub enum RenderError {
MalformedAddr {
sheet: String,
addr: String,
},
MalformedMerge {
sheet: String,
range: String,
},
NonFiniteValue {
cell: String,
},
Writer(String),
}Expand description
A fallible render failure (review item 8 — the writer value path is
panic-free; a malformed coordinate / non-finite value / writer error surfaces
as an Err, NEVER a panic and NEVER a bogus cell). Owned String detail to
match the crate’s LintFinding error style (no borrow across the API).
Variants§
MalformedAddr
A cell’s A1 address in the descriptor did not parse to a (row, col)
coordinate (T-12 panic-freedom — a malformed addr is an Err).
MalformedMerge
A merge range in the descriptor did not parse into two valid endpoints (or is degenerate / out of order).
NonFiniteValue
A computed value for a cell was a non-finite f64 (NaN/Inf), which Excel
cannot represent (handler.rs WR-06 reuse, T-12-05) — never written as a
bogus number.
Writer(String)
The underlying rust_xlsxwriter writer returned an error (e.g. a name or
dimension limit). Carried as an owned String (the crate’s error is not
Clone/Eq).
Trait Implementations§
Source§impl Clone for RenderError
impl Clone for RenderError
Source§fn clone(&self) -> RenderError
fn clone(&self) -> RenderError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
impl Eq for RenderError
Source§impl Error for RenderError
impl Error for RenderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for RenderError
impl PartialEq for RenderError
Source§fn eq(&self, other: &RenderError) -> bool
fn eq(&self, other: &RenderError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RenderError
Auto Trait Implementations§
impl Freeze for RenderError
impl RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl UnwindSafe for RenderError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.