pub struct TapReaderState { /* private fields */ }
Implementations§
Source§impl TapReaderState
impl TapReaderState
pub fn new() -> TapReaderState
pub fn current_shape(&mut self) -> &mut TapShape
pub fn headers(&self) -> &TapHeaders
pub fn with_headers(self, headers: TapHeaders) -> Self
pub fn set_next_record( &mut self, rcd: &StringRecord, pos: &Position, ) -> &mut Self
pub fn reset_next_record(&mut self) -> &mut Self
pub fn get_cached_next_record(&mut self) -> Option<(&StringRecord, &Position)>
pub fn placeholder_id(&mut self, str: &str) -> u64
pub fn warnings(&self) -> impl Iterator<Item = &TapReaderWarning>
pub fn has_warnings(&self) -> bool
pub fn add_warning(&mut self, warning: TapReaderWarning)
Trait Implementations§
Source§impl Debug for TapReaderState
impl Debug for TapReaderState
Auto Trait Implementations§
impl Freeze for TapReaderState
impl RefUnwindSafe for TapReaderState
impl Send for TapReaderState
impl Sync for TapReaderState
impl Unpin for TapReaderState
impl UnwindSafe for TapReaderState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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