Struct gherkin_rust::Table[][src]

pub struct Table {
    pub rows: Vec<Vec<String>>,
    pub span: Span,
    pub position: LineCol,
}

A data table

Fields

rows: Vec<Vec<String>>

The rows of the data table. Each row is always the same length as the first row.

span: Span

The (start, end) offset the table directive was found in the .feature file.

position: LineCol

The (line, col) position the table directive was found in the .feature file.

Implementations

impl Table[src]

pub fn builder() -> TableBuilder<((), (), ())>[src]

Create a builder for building Table. On the builder, call .rows(...), .span(...)(optional), .position(...)(optional) to set the values of the fields (they accept Into values). Finally, call .build() to create the instance of Table.

impl Table[src]

pub fn row_width(&self) -> usize[src]

Trait Implementations

impl Clone for Table[src]

impl Debug for Table[src]

impl Eq for Table[src]

impl Hash for Table[src]

impl PartialEq<Table> for Table[src]

impl StructuralEq for Table[src]

impl StructuralPartialEq for Table[src]

Auto Trait Implementations

impl RefUnwindSafe for Table

impl Send for Table

impl Sync for Table

impl Unpin for Table

impl UnwindSafe for Table

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.