pub struct ChunkedSource { /* private fields */ }Expand description
A read-only, chunked source implementation for efficient handling of streamed or large files.
Trait Implementations§
Source§impl Clone for ChunkedSource
impl Clone for ChunkedSource
Source§fn clone(&self) -> ChunkedSource
fn clone(&self) -> ChunkedSource
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 ChunkedSource
impl Debug for ChunkedSource
Source§impl Source for ChunkedSource
impl Source for ChunkedSource
Source§fn chunk_at(&self, offset: usize) -> TextChunk<'_>
fn chunk_at(&self, offset: usize) -> TextChunk<'_>
Returns a text chunk containing the specified byte offset. Read more
Source§fn get_text_in(&self, range: Range<usize>) -> Cow<'_, str>
fn get_text_in(&self, range: Range<usize>) -> Cow<'_, str>
Returns the text content within the specified byte range. Read more
Source§fn source_id(&self) -> Option<SourceId>
fn source_id(&self) -> Option<SourceId>
Returns a unique identifier for this source, if available. Read more
Source§fn get_char_at(&self, offset: usize) -> Option<char>
fn get_char_at(&self, offset: usize) -> Option<char>
Returns the character at the specified byte offset. Read more
Source§fn get_text_from(&self, offset: usize) -> Cow<'_, str>
fn get_text_from(&self, offset: usize) -> Cow<'_, str>
Returns the text from the specified byte offset to the end of the source. Read more
Source§fn find_char_from(&self, offset: usize, ch: char) -> Option<usize>
fn find_char_from(&self, offset: usize, ch: char) -> Option<usize>
Finds the next occurrence of a character starting from an offset. Read more
Auto Trait Implementations§
impl Freeze for ChunkedSource
impl RefUnwindSafe for ChunkedSource
impl Send for ChunkedSource
impl Sync for ChunkedSource
impl Unpin for ChunkedSource
impl UnsafeUnpin for ChunkedSource
impl UnwindSafe for ChunkedSource
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