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
sourceimpl MatchedStep
impl MatchedStep
sourcepub fn new(binding: &Binding, template: &str) -> MatchedStep
pub fn new(binding: &Binding, template: &str) -> 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
sourceimpl Debug for MatchedStep
impl Debug for MatchedStep
sourceimpl<'de> Deserialize<'de> for MatchedStep
impl<'de> Deserialize<'de> for MatchedStep
sourcefn 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
sourceimpl Serialize for MatchedStep
impl Serialize for MatchedStep
Auto Trait Implementations
impl RefUnwindSafe for MatchedStep
impl Send for MatchedStep
impl Sync for MatchedStep
impl Unpin for MatchedStep
impl UnwindSafe for MatchedStep
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more