#[non_exhaustive]pub struct ShardInfo {
pub shard_index: i64,
pub shard_count: i64,
pub text_offset: i64,
/* private fields */
}Expand description
For a large document, sharding may be performed to produce several document shards. Each document shard contains this field to detail which shard it is.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.shard_index: i64The 0-based index of this shard.
shard_count: i64Total number of shards.
text_offset: i64The index of the first character in Document.text in the overall document global text.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ShardInfo
Auto Trait Implementations§
impl Freeze for ShardInfo
impl RefUnwindSafe for ShardInfo
impl Send for ShardInfo
impl Sync for ShardInfo
impl Unpin for ShardInfo
impl UnwindSafe for ShardInfo
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