Struct subplot::MatchedStep
source · pub struct MatchedStep { /* private fields */ }
Expand description
A matched binding and scenario step, with captured parts.
A MatchedStep is a sequence of partial steps, each representing either a captured or a matching part of the text of the step.
Implementations§
source§impl MatchedStep
impl MatchedStep
sourcepub fn new(binding: &Binding, template: &str, origin: Location) -> MatchedStep
pub fn new(binding: &Binding, template: &str, origin: Location) -> MatchedStep
Return a new empty match. Empty means it has no step parts.
sourcepub fn append_part(&mut self, part: PartialStep)
pub fn append_part(&mut self, part: PartialStep)
Append a partial step to the match.
sourcepub fn parts(&self) -> impl Iterator<Item = &PartialStep>
pub fn parts(&self) -> impl Iterator<Item = &PartialStep>
Iterate over all partial steps in the match.
Trait Implementations§
source§impl Debug for MatchedStep
impl Debug for MatchedStep
source§impl<'de> Deserialize<'de> for MatchedStep
impl<'de> Deserialize<'de> for MatchedStep
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MatchedStep
impl RefUnwindSafe for MatchedStep
impl Send for MatchedStep
impl Sync for MatchedStep
impl Unpin for MatchedStep
impl UnwindSafe for MatchedStep
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more