pub struct PlannedStep {
pub text: String,
pub match_span: Span,
pub param_spans: Vec<Span>,
pub step_def: Rc<StepRegistration>,
pub args: Vec<Value>,
pub formats: Vec<Option<FormatFn>>,
pub data_table: Option<Table>,
pub doc_string: Option<Fence>,
}Expand description
One matched step: text, source span, captured-parameter spans, args, and
attachments. formats aligns 1:1 with args.
Fields§
§text: String§match_span: Span§param_spans: Vec<Span>§step_def: Rc<StepRegistration>§args: Vec<Value>§formats: Vec<Option<FormatFn>>§data_table: Option<Table>§doc_string: Option<Fence>Trait Implementations§
Source§impl Clone for PlannedStep
impl Clone for PlannedStep
Source§fn clone(&self) -> PlannedStep
fn clone(&self) -> PlannedStep
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PlannedStep
impl !Send for PlannedStep
impl !Sync for PlannedStep
impl !UnwindSafe for PlannedStep
impl Freeze for PlannedStep
impl Unpin for PlannedStep
impl UnsafeUnpin for PlannedStep
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more