pub enum XlsxKind {
Workbook,
MacroWorkbook,
Template,
MacroTemplate,
}Expand description
Which member of the SpreadsheetML family a package is saved as. Only the content type of the workbook part differs (ECMA-376 Part 1 Workbook part; MS-OI29500 adds the macro-enabled types).
Variants§
Implementations§
Source§impl XlsxKind
impl XlsxKind
Sourcepub fn from_path(path: &str) -> XlsxKind
pub fn from_path(path: &str) -> XlsxKind
The kind a file name’s extension asks for; anything else is a plain workbook.
Sourcepub fn main_content_type(self) -> &'static str
pub fn main_content_type(self) -> &'static str
Content type of /xl/workbook.xml.
Sourcepub fn is_macro_enabled(self) -> bool
pub fn is_macro_enabled(self) -> bool
Whether this kind may carry a VBA project (.xlsm, .xltm).
Trait Implementations§
impl Copy for XlsxKind
impl Eq for XlsxKind
impl StructuralPartialEq for XlsxKind
Auto Trait Implementations§
impl Freeze for XlsxKind
impl RefUnwindSafe for XlsxKind
impl Send for XlsxKind
impl Sync for XlsxKind
impl Unpin for XlsxKind
impl UnsafeUnpin for XlsxKind
impl UnwindSafe for XlsxKind
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<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.