pub struct ShardGroup {
pub base: String,
pub total: usize,
pub members: Vec<Member>,
}Expand description
A set of shards that together form one model.
Fields§
§base: StringThe shared base name.
total: usizeThe declared total shard count.
members: Vec<Member>The member files present, sorted by index.
Implementations§
Source§impl ShardGroup
impl ShardGroup
Sourcepub fn first_shard(&self) -> Option<&Path>
pub fn first_shard(&self) -> Option<&Path>
The path of the first shard (index 1), if present.
Sourcepub fn footprint_bytes(&self) -> i64
pub fn footprint_bytes(&self) -> i64
The total size of all present members.
Trait Implementations§
Source§impl Clone for ShardGroup
impl Clone for ShardGroup
Source§impl Debug for ShardGroup
impl Debug for ShardGroup
impl Eq for ShardGroup
Source§impl PartialEq for ShardGroup
impl PartialEq for ShardGroup
impl StructuralPartialEq for ShardGroup
Auto Trait Implementations§
impl Freeze for ShardGroup
impl RefUnwindSafe for ShardGroup
impl Send for ShardGroup
impl Sync for ShardGroup
impl Unpin for ShardGroup
impl UnsafeUnpin for ShardGroup
impl UnwindSafe for ShardGroup
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