Skip to main content

anything

Function anything 

Source
pub fn anything() -> Anything
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()))?;