Function faux::matcher::any [−][src]
pub fn any<T: ?Sized>() -> impl ArgMatcher<T>
Returns a universal argument matcher.
The returned matcher will match any T
struct Data; use faux::matcher::{self, ArgMatcher}; assert!(matcher::any().matches(&5)); assert!(matcher::any().matches("hello")); assert!(matcher::any().matches(&Data));