matches::matches!
[−]
[src]
macro_rules! matches { ($expression: expr, $($pattern:tt)+) => { _tt_as_expr_hack! { match $expression { $($pattern)+ => true, _ => false } } } }
macro_rules! matches { ($expression: expr, $($pattern:tt)+) => { _tt_as_expr_hack! { match $expression { $($pattern)+ => true, _ => false } } } }
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)