#[non_exhaustive]pub enum ObjectKind {
Sheet,
Table,
TableColumn,
PivotTable,
PivotField,
Chart,
VbaModule,
}Expand description
The kind of workbook object an Error refers to.
Used by the Error::NotFound / Error::AlreadyExists /
Error::NameTaken variants so callers can distinguish “no such sheet”
from “no such table” without parsing the message text.
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.
Sheet
A worksheet.
Table
An Excel Table (ListObject) – a named range with a header row, not a
worksheet. See crate::core::ExcelTable.
TableColumn
A column within an Excel Table.
PivotTable
A pivot table.
PivotField
A field within a pivot table.
Chart
A chart.
VbaModule
A VBA module.
Implementations§
Trait Implementations§
Source§impl Clone for ObjectKind
impl Clone for ObjectKind
Source§fn clone(&self) -> ObjectKind
fn clone(&self) -> ObjectKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ObjectKind
Source§impl Debug for ObjectKind
impl Debug for ObjectKind
Source§impl Display for ObjectKind
impl Display for ObjectKind
impl Eq for ObjectKind
Source§impl Hash for ObjectKind
impl Hash for ObjectKind
Source§impl PartialEq for ObjectKind
impl PartialEq for ObjectKind
impl StructuralPartialEq for ObjectKind
Auto Trait Implementations§
impl Freeze for ObjectKind
impl RefUnwindSafe for ObjectKind
impl Send for ObjectKind
impl Sync for ObjectKind
impl Unpin for ObjectKind
impl UnsafeUnpin for ObjectKind
impl UnwindSafe for ObjectKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Compare self to
key and return true if they are equal.