pub enum CellError {
Show 15 variants
Null,
Div0,
Value,
Ref,
Name,
Num,
NA,
GettingData,
Spill,
Calc,
Circ,
Python,
Busy,
Timeout,
Blocked,
}Expand description
Excel’s error values.
Variants§
Null
Div0
Value
Ref
Name
Num
NA
GettingData
Spill
Calc
Circ
Circular reference that could not be resolved (shown as 0 by Excel; we keep it explicit).
Python
A Python cell’s code raised an error, or Python stopped.
Busy
A Python cell is waiting to run.
Timeout
A Python cell ran longer than the time limit.
Blocked
Python can’t run here: the workbook’s content isn’t enabled, or this build has no Python.
Implementations§
Source§impl CellError
impl CellError
pub const ALL: [CellError; 14]
pub fn as_str(&self) -> &'static str
Sourcepub fn code(&self) -> u32
pub fn code(&self) -> u32
ERROR.TYPE number. Microsoft documents 1 to 8; 9 (#SPILL!), 11 (#BLOCKED!) and 14 (#CALC!)
are the numbers Excel returns. Microsoft documents no number for #PYTHON!, #BUSY! or
#TIMEOUT!: 19, 20 and 21 are GridCraft’s own choice, after the numbers Excel is known to use,
and may change if Excel’s numbers become known.
pub fn parse(s: &str) -> Option<CellError>
Trait Implementations§
impl Copy for CellError
Source§impl<'de> Deserialize<'de> for CellError
impl<'de> Deserialize<'de> for CellError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CellError
impl StructuralPartialEq for CellError
Auto Trait Implementations§
impl Freeze for CellError
impl RefUnwindSafe for CellError
impl Send for CellError
impl Sync for CellError
impl Unpin for CellError
impl UnsafeUnpin for CellError
impl UnwindSafe for CellError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.