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<(), SubplotError>
pub fn add_from_yaml(&mut self, yaml: &str) -> Result<(), SubplotError>
Add bindings from a YAML string
sourcepub fn find(
&self,
template: &str,
step: &ScenarioStep
) -> Result<MatchedStep, SubplotError>
pub fn find(
&self,
template: &str,
step: &ScenarioStep
) -> Result<MatchedStep, SubplotError>
Find the binding matching a given scenario step, if there is exactly one.
sourcepub fn add_from_file<P>(
&mut self,
filename: P,
template: Option<&str>
) -> Result<(), SubplotError> where
P: AsRef<Path> + Debug,
pub fn add_from_file<P>(
&mut self,
filename: P,
template: Option<&str>
) -> Result<(), SubplotError> where
P: AsRef<Path> + Debug,
Add bindings from a file.
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