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
sourceimpl 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
sourceimpl Debug for PartialStep
impl Debug for PartialStep
sourceimpl<'de> Deserialize<'de> for PartialStep
impl<'de> Deserialize<'de> for PartialStep
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 PartialEq<PartialStep> for PartialStep
impl PartialEq<PartialStep> for PartialStep
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PartialStep) -> bool
fn ne(&self, other: &PartialStep) -> bool
This method tests for !=
.
sourceimpl 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
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.