[−][src]Struct tabfile::Record
One line from a tab-separated file.
A Record
gives you access to the original line as well as the individual fields of the
line. You can keep ownership of the Record
even if you continue looping over the
Tabfile.
Implementations
impl Record
[src]
pub fn fields(&self) -> Vec<&str>
[src]
Get the individual (tab-)separated fields of a line
This method generates string slices on the fly from precomputed positions.
pub fn line(&self) -> &str
[src]
Get the original line unchanged
pub fn line_number(&self) -> usize
[src]
Get the original line number
Please note that the line number counts start from one.
pub fn len(&self) -> usize
[src]
Get the number of fields
Auto Trait Implementations
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,