Skip to main content

IntoTestId

Trait IntoTestId 

Source
pub trait IntoTestId<'a> {
    // Required method
    fn into_test_id(self) -> TestIdRef<'a>;

    // Provided method
    fn qualified_rust_path(&self) -> Option<&'static str> { ... }
}
Expand description

What .test_id(..), test_id and get_by_test_id(..) accept: a TestId value, or a string for an id built at run time.

Required Methods§

Source

fn into_test_id(self) -> TestIdRef<'a>

The id as the tree carries it.

Provided Methods§

Source

fn qualified_rust_path(&self) -> Option<&'static str>

The TestId::qualified_path of a typed id; None for a string.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoTestId<'_> for String

Source§

fn into_test_id(self) -> TestIdRef<'static>

Source§

impl<'a> IntoTestId<'a> for &'a String

Source§

impl<'a> IntoTestId<'a> for &'a str

Source§

impl<'a> IntoTestId<'a> for Cow<'a, str>

Implementors§

Source§

impl<'a> IntoTestId<'a> for TestIdRef<'a>

Source§

impl<T: TestId> IntoTestId<'_> for T