pub struct ProgressStreamingTokenizer { /* private fields */ }Expand description
진행률 추적 스트리밍 토크나이저
대용량 파일 처리 시 진행 상황을 콜백으로 보고합니다.
Implementations§
Source§impl ProgressStreamingTokenizer
impl ProgressStreamingTokenizer
Sourcepub const DEFAULT_CALLBACK_INTERVAL: usize = 65536
pub const DEFAULT_CALLBACK_INTERVAL: usize = 65536
기본 콜백 간격 (64KB)
Sourcepub fn with_progress_callback<F>(self, callback: F) -> Self
pub fn with_progress_callback<F>(self, callback: F) -> Self
진행률 콜백 설정
Sourcepub const fn with_total_bytes(self, total: usize) -> Self
pub const fn with_total_bytes(self, total: usize) -> Self
총 바이트 수 설정 (진행률 계산용)
Sourcepub const fn with_callback_interval(self, interval: usize) -> Self
pub const fn with_callback_interval(self, interval: usize) -> Self
콜백 간격 설정
Sourcepub fn with_chunk_size(self, size: usize) -> Self
pub fn with_chunk_size(self, size: usize) -> Self
청크 크기 설정
Sourcepub fn process_chunk(&mut self, chunk: &str) -> Vec<Token>
pub fn process_chunk(&mut self, chunk: &str) -> Vec<Token>
청크 처리
Sourcepub const fn progress(&self) -> StreamingProgress
pub const fn progress(&self) -> StreamingProgress
현재 진행 상황 조회
Auto Trait Implementations§
impl !Freeze for ProgressStreamingTokenizer
impl !RefUnwindSafe for ProgressStreamingTokenizer
impl Send for ProgressStreamingTokenizer
impl !Sync for ProgressStreamingTokenizer
impl Unpin for ProgressStreamingTokenizer
impl UnsafeUnpin for ProgressStreamingTokenizer
impl !UnwindSafe for ProgressStreamingTokenizer
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