pub struct StreamingLineCursor { /* private fields */ }Implementations§
Source§impl StreamingLineCursor
impl StreamingLineCursor
pub const fn new( lines: Vec<ParsedLine>, blank_lines: Vec<BlankLineInfo>, ) -> Self
pub fn get_blank_lines(&self) -> &[BlankLineInfo]
pub fn peek_sync(&self) -> Option<&ParsedLine>
pub fn advance_sync(&mut self)
pub fn next_sync(&mut self) -> Option<ParsedLine>
pub const fn current(&self) -> Option<&ParsedLine>
pub const fn at_end_sync(&self) -> bool
Trait Implementations§
Source§impl Clone for StreamingLineCursor
impl Clone for StreamingLineCursor
Source§fn clone(&self) -> StreamingLineCursor
fn clone(&self) -> StreamingLineCursor
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 moreAuto Trait Implementations§
impl Freeze for StreamingLineCursor
impl RefUnwindSafe for StreamingLineCursor
impl Send for StreamingLineCursor
impl Sync for StreamingLineCursor
impl Unpin for StreamingLineCursor
impl UnsafeUnpin for StreamingLineCursor
impl UnwindSafe for StreamingLineCursor
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