Skip to main content

Expectable

Trait Expectable 

Source
pub trait Expectable<'a> {
    type Assertions;

    // Required method
    fn assertions(&'a self) -> Self::Assertions;
}
Expand description

Trait for creating assertions from different types.

This enables a unified expect() function that works with both locators and pages.

Required Associated Types§

Source

type Assertions

The assertion builder type for this value.

Required Methods§

Source

fn assertions(&'a self) -> Self::Assertions

Create an assertion builder for this value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a> Expectable<'a> for Locator<'a>

Implementors§