pub struct Bindings { /* private fields */ }
Expand description
Set of all known bindings.
Implementations
sourceimpl Bindings
impl Bindings
sourcepub fn add_from_yaml(&mut self, yaml: &str) -> Result<()>
pub fn add_from_yaml(&mut self, yaml: &str) -> Result<()>
Add bindings from a YAML string
sourcepub fn find(&self, template: &str, step: &ScenarioStep) -> Result<MatchedStep>
pub fn find(&self, template: &str, step: &ScenarioStep) -> Result<MatchedStep>
Find the binding matching a given scenario step, if there is exactly one.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Bindings
impl Send for Bindings
impl Sync for Bindings
impl Unpin for Bindings
impl UnwindSafe for Bindings
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