Struct gherkin_rust::Step [−][src]
pub struct Step { pub ty: StepType, pub raw_type: String, pub value: String, pub docstring: Option<String>, pub table: Option<Table>, pub position: (usize, usize), }
A scenario step
Fields
ty: StepType
The step type for the step after parsed in context.
raw_type: String
The original raw step type, including But
and And
.
value: String
The value of the step after the type.
docstring: Option<String>
A docstring, if provided.
table: Option<Table>
A data table, if provided.
position: (usize, usize)
The (line, col)
position the step directive was found in the .feature file.
Methods
impl Step
[src]
impl Step
pub fn docstring(&self) -> Option<&String>
[src]
pub fn docstring(&self) -> Option<&String>
pub fn table(&self) -> Option<&Table>
[src]
pub fn table(&self) -> Option<&Table>
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
Trait Implementations
impl Debug for Step
[src]
impl Debug for Step
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Step
[src]
impl Clone for Step
fn clone(&self) -> Step
[src]
fn clone(&self) -> Step
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
impl PartialEq for Step
[src]
impl PartialEq for Step
fn eq(&self, other: &Step) -> bool
[src]
fn eq(&self, other: &Step) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Step) -> bool
[src]
fn ne(&self, other: &Step) -> bool
This method tests for !=
.
impl Hash for Step
[src]
impl Hash for Step
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for Step
[src]
impl Eq for Step