Struct gherkin_rust::TableBuilder [−][src]
pub struct TableBuilder { /* fields omitted */ }
Builder for Table
.
Methods
impl TableBuilder
[src]
impl TableBuilder
pub fn header(&mut self, value: Vec<String>) -> &mut Self
[src]
pub fn header(&mut self, value: Vec<String>) -> &mut Self
The headers of the data table.
pub fn rows(&mut self, value: Vec<Vec<String>>) -> &mut Self
[src]
pub fn rows(&mut self, value: Vec<Vec<String>>) -> &mut Self
The rows of the data table. Each row is always the same length as the header
field.
pub fn position(&mut self, value: (usize, usize)) -> &mut Self
[src]
pub fn position(&mut self, value: (usize, usize)) -> &mut Self
The (line, col)
position the table directive was found in the .feature file.
pub fn build(&self) -> Result<Table, String>
[src]
pub fn build(&self) -> Result<Table, String>
Trait Implementations
impl Default for TableBuilder
[src]
impl Default for TableBuilder
fn default() -> TableBuilder
[src]
fn default() -> TableBuilder
Returns the "default value" for a type. Read more
impl Clone for TableBuilder
[src]
impl Clone for TableBuilder
fn clone(&self) -> TableBuilder
[src]
fn clone(&self) -> TableBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for TableBuilder
impl Send for TableBuilder
impl Sync for TableBuilder
impl Sync for TableBuilder