Trait AssertingThatRef

Source
pub trait AssertingThatRef {
    type Owned;

    // Required methods
    fn assert_that<U>(
        &self,
        map: impl Fn(&Self) -> &U,
    ) -> AssertThat<'_, U, Panic>
       where Self: Sized;
    fn assert_that_it(&self) -> AssertThat<'_, Self::Owned, Panic>
       where Self: Sized;
}

Required Associated Types§

Required Methods§

Source

fn assert_that<U>(&self, map: impl Fn(&Self) -> &U) -> AssertThat<'_, U, Panic>
where Self: Sized,

Source

fn assert_that_it(&self) -> AssertThat<'_, Self::Owned, Panic>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl<T> AssertingThatRef for &T

Source§

type Owned = T

Source§

fn assert_that<U>(&self, map: impl Fn(&Self) -> &U) -> AssertThat<'_, U, Panic>
where Self: Sized,

Source§

fn assert_that_it(&self) -> AssertThat<'_, Self::Owned, Panic>
where Self: Sized,

Implementors§