pub struct OptimizedFileReader { /* private fields */ }Expand description
diffxの技術を活用した最適化IO処理
Implementations§
Source§impl OptimizedFileReader
impl OptimizedFileReader
Sourcepub fn from_stdin() -> Self
pub fn from_stdin() -> Self
標準入力からの読み込み
Sourcepub fn should_use_streaming(&self) -> bool
pub fn should_use_streaming(&self) -> bool
大容量ファイルストリーミング判定(diffx 100MB閾値)
Sourcepub fn read_lines_streaming<F, T>(&mut self, processor: F) -> Result<Vec<T>>
pub fn read_lines_streaming<F, T>(&mut self, processor: F) -> Result<Vec<T>>
ライン単位でのストリーミング読み込み
Sourcepub fn read_lines_batched<F, T>(
&mut self,
batch_size: usize,
processor: F,
) -> Result<Vec<T>>
pub fn read_lines_batched<F, T>( &mut self, batch_size: usize, processor: F, ) -> Result<Vec<T>>
バッチ処理(diffxのバッチサイズ最適化)
Sourcepub fn buffer_size(&self) -> usize
pub fn buffer_size(&self) -> usize
バッファサイズ情報
Auto Trait Implementations§
impl !RefUnwindSafe for OptimizedFileReader
impl !Send for OptimizedFileReader
impl !Sync for OptimizedFileReader
impl !UnwindSafe for OptimizedFileReader
impl Freeze for OptimizedFileReader
impl Unpin for OptimizedFileReader
impl UnsafeUnpin for OptimizedFileReader
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> 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