Function googletest::matchers::anything
source · pub fn anything<T: Debug + ?Sized>() -> impl Matcher<ActualT = T>
Expand description
Matches anything. This matcher always succeeds.
This is useful to check if actual
matches the specific structure (like
Some(...)
) but without caring about the internal value.
let option = Some("Some value");
verify_that!(option, some(anything()))?;