pub struct FlatToc {Show 13 fields
pub manifest: Manifest,
pub graph_offset: u64,
pub graph_length: u64,
pub graph_tier: StorageTier,
pub graph_codec: Codec,
pub tensors: Vec<FlatTensor>,
pub sidecars: Vec<FlatSidecar>,
pub placement_offset: Option<u64>,
pub placement_length: Option<u64>,
pub placement_tier: StorageTier,
pub placement_codec: Codec,
pub warm_block_size: Option<u32>,
pub strings: Vec<String>,
}Expand description
Table of contents after the fixed header.
Fields§
§manifest: Manifest§graph_offset: u64§graph_length: u64§graph_tier: StorageTierGraph stays hot/raw (mmap + bincode).
graph_codec: Codec§tensors: Vec<FlatTensor>§sidecars: Vec<FlatSidecar>§placement_offset: Option<u64>§placement_length: Option<u64>§placement_tier: StorageTier§placement_codec: Codec§warm_block_size: Option<u32>Uncompressed warm block size used when writing (informational).
strings: Vec<String>Interned strings for tensor names (name_i indexes this).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlatToc
impl<'de> Deserialize<'de> for FlatToc
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
Auto Trait Implementations§
impl Freeze for FlatToc
impl RefUnwindSafe for FlatToc
impl Send for FlatToc
impl Sync for FlatToc
impl Unpin for FlatToc
impl UnsafeUnpin for FlatToc
impl UnwindSafe for FlatToc
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more