pub struct TableDef {
pub id: u8,
pub name: &'static str,
pub fields: &'static [FieldDef],
pub primary_key: usize,
pub secondary_index: Option<usize>,
pub secondary_index_type: IndexType,
pub record_size: usize,
pub max_records: usize,
}Expand description
表定义
Fields§
§id: u8表ID
name: &'static str表名称
fields: &'static [FieldDef]字段定义
primary_key: usize主键字段索引
secondary_index: Option<usize>辅助索引字段索引(可选)
secondary_index_type: IndexType辅助索引类型
record_size: usize单条记录大小
max_records: usize最大记录数
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableDef
impl RefUnwindSafe for TableDef
impl Send for TableDef
impl Sync for TableDef
impl Unpin for TableDef
impl UnwindSafe for TableDef
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