pub struct SplitStats {
pub input_chars: usize,
pub input_tokens_est: usize,
pub chunks: usize,
pub avg_chunk_tokens: f64,
pub avg_chunk_chars: f64,
pub max_chunk_chars: usize,
pub min_chunk_chars: usize,
}Expand description
Split statistics.
Fields§
§input_chars: usize§input_tokens_est: usize§chunks: usize§avg_chunk_tokens: f64§avg_chunk_chars: f64§max_chunk_chars: usize§min_chunk_chars: usizeTrait Implementations§
Source§impl Clone for SplitStats
impl Clone for SplitStats
Source§fn clone(&self) -> SplitStats
fn clone(&self) -> SplitStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SplitStats
impl Debug for SplitStats
Source§impl<'de> Deserialize<'de> for SplitStats
impl<'de> Deserialize<'de> for SplitStats
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 SplitStats
impl RefUnwindSafe for SplitStats
impl Send for SplitStats
impl Sync for SplitStats
impl Unpin for SplitStats
impl UnsafeUnpin for SplitStats
impl UnwindSafe for SplitStats
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