Macropostgres::accepts [−][src]
macro_rules!accepts { ($($expected:pat),+)=> { ... };}
Generates a simple implementation ofToSql::accepts
which accepts thetypes passed to it.
macro_rules!accepts { ($($expected:pat),+)=> { ... };}
Generates a simple implementation ofToSql::accepts
which accepts thetypes passed to it.
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
,type
,macro
, andconst
.
Search functions by type signature (e.g.vec -> usize
or* -> vec
)