[][src]Struct tabfile::Record

pub struct Record { /* fields omitted */ }

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.