MCPcopy Create free account
hub / github.com/SSheldon/rust-objc / count_args

Function count_args

src/declare.rs:90–92  ·  view source on GitHub ↗
(sel: Sel)

Source from the content-addressed store, hash-verified

88method_decl_impl!(A, B, C, D, E, F, G, H, I, J, K, L);
89
90fn count_args(sel: Sel) -> usize {
91 sel.name().chars().filter(|&c| c == ':').count()
92}
93
94fn method_type_encoding(ret: &Encoding, args: &[Encoding]) -> CString {
95 let mut types = ret.as_str().to_owned();

Callers 3

add_methodMethod · 0.85
add_class_methodMethod · 0.85

Calls 1

nameMethod · 0.80

Tested by

no test coverage detected