pub struct StreamPosition {
pub line: usize,
pub column: usize,
pub offset: usize,
pub buffered: usize,
}Expand description
The point immediately after the last character written to a stream parser.
Fields§
§line: usizeOne-based line number.
column: usizeOne-based character column.
offset: usizeAbsolute byte offset from the start of the stream.
buffered: usizeBytes held for the one unresolved top-level record.
Trait Implementations§
Source§impl Clone for StreamPosition
impl Clone for StreamPosition
Source§fn clone(&self) -> StreamPosition
fn clone(&self) -> StreamPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamPosition
impl Debug for StreamPosition
Source§impl Display for StreamPosition
impl Display for StreamPosition
impl Eq for StreamPosition
Source§impl PartialEq for StreamPosition
impl PartialEq for StreamPosition
impl StructuralPartialEq for StreamPosition
Auto Trait Implementations§
impl Freeze for StreamPosition
impl RefUnwindSafe for StreamPosition
impl Send for StreamPosition
impl Sync for StreamPosition
impl Unpin for StreamPosition
impl UnsafeUnpin for StreamPosition
impl UnwindSafe for StreamPosition
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