Enum xcell_core::XTableKind
source · pub enum XTableKind {
Array(Box<XArrayTable>),
Dictionary(Box<XDictionaryTable>),
Enumerate(Box<XEnumerateTable>),
Class(Box<XClassTable>),
}
Variants§
Array(Box<XArrayTable>)
Dictionary(Box<XDictionaryTable>)
Enumerate(Box<XEnumerateTable>)
Class(Box<XClassTable>)
Implementations§
source§impl XTableKind
impl XTableKind
pub fn link_enumerate(&self, path: &Path) -> Validation<XTableKind>
source§impl XTableKind
impl XTableKind
pub fn read_table_data(
&mut self,
table: &CalamineTable,
path: &Path,
meta: &TypeMetaInfo
)
source§impl XTableKind
impl XTableKind
source§impl XTableKind
impl XTableKind
sourcepub fn read_table_kind(&mut self, table: &CalamineTable, project: &ProjectConfig)
pub fn read_table_kind(&mut self, table: &CalamineTable, project: &ProjectConfig)
获取表格的类型, 表格类型由于第三行的第一列决定
pub fn read_table_headers(
&mut self,
table: &CalamineTable,
project: &ProjectConfig
)
Trait Implementations§
source§impl Clone for XTableKind
impl Clone for XTableKind
source§fn clone(&self) -> XTableKind
fn clone(&self) -> XTableKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for XTableKind
impl Debug for XTableKind
source§impl Default for XTableKind
impl Default for XTableKind
source§impl<'de> Deserialize<'de> for XTableKind
impl<'de> Deserialize<'de> for XTableKind
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