pub struct Index {
pub json: Map<String, Value>,
pub family: String,
pub id: String,
pub hash: String,
pub tensors: Vec<Entry>,
pub files: Vec<FileEntry>,
pub data_start: usize,
}Expand description
A parsed and checked .kime index.
Fields§
§json: Map<String, Value>The whole JSON, for fields this module does not interpret.
family: StringThe model family, laya for now.
id: StringThe model id.
hash: Stringblake3 of the data section, as 64 hex digits.
tensors: Vec<Entry>Tensors, in their original order, with absolute offsets.
files: Vec<FileEntry>Carried files, with absolute offsets.
data_start: usizeWhere the data section starts.
Trait Implementations§
impl StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnsafeUnpin for Index
impl UnwindSafe for Index
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