Enum subplot::PartialStep
source · pub enum PartialStep {
UncapturedText(StepSnippet),
CapturedText {
name: String,
text: String,
},
}
Expand description
Part of a scenario step, possibly captured by a pattern.
Variants§
UncapturedText(StepSnippet)
The text of a step part that isn’t captured.
CapturedText
A captured step part that is just text, and the regex capture name that corresponds to it.
Implementations§
source§impl PartialStep
impl PartialStep
sourcepub fn uncaptured(text: &str) -> PartialStep
pub fn uncaptured(text: &str) -> PartialStep
Construct an uncaptured part of a scenario step.
sourcepub fn text(name: &str, text: &str) -> PartialStep
pub fn text(name: &str, text: &str) -> PartialStep
Construct a textual captured part of a scenario step.
Trait Implementations§
source§impl Debug for PartialStep
impl Debug for PartialStep
source§impl<'de> Deserialize<'de> for PartialStep
impl<'de> Deserialize<'de> for PartialStep
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
source§impl PartialEq<PartialStep> for PartialStep
impl PartialEq<PartialStep> for PartialStep
source§fn eq(&self, other: &PartialStep) -> bool
fn eq(&self, other: &PartialStep) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PartialStep
impl Serialize for PartialStep
impl Eq for PartialStep
impl StructuralEq for PartialStep
impl StructuralPartialEq for PartialStep
Auto Trait Implementations§
impl RefUnwindSafe for PartialStep
impl Send for PartialStep
impl Sync for PartialStep
impl Unpin for PartialStep
impl UnwindSafe for PartialStep
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.