Struct gherkin_rust::Rule [−][src]
pub struct Rule { pub name: String, pub scenarios: Vec<Scenario>, pub tags: Option<Vec<String>>, pub position: (usize, usize), }
A rule, as introduced in Gherkin 6.
Fields
name: String
The name of the scenario.
scenarios: Vec<Scenario>
The parsed scenarios from the rule directive.
The tags for the rule directive if provided.
position: (usize, usize)
The (line, col)
position the rule directive was found in the .feature file.
Trait Implementations
impl Debug for Rule
[src]
impl Debug for Rule
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 Rule
[src]
impl Clone for Rule
fn clone(&self) -> Rule
[src]
fn clone(&self) -> Rule
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 Rule
[src]
impl PartialEq for Rule
fn eq(&self, other: &Rule) -> bool
[src]
fn eq(&self, other: &Rule) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rule) -> bool
[src]
fn ne(&self, other: &Rule) -> bool
This method tests for !=
.
impl Hash for Rule
[src]
impl Hash for Rule
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 Rule
[src]
impl Eq for Rule
impl<'a> From<Pair<'a, Rule>> for Rule
[src]
impl<'a> From<Pair<'a, Rule>> for Rule