Lines Matching refs:Api
7 attrs, error, Api, Array, Derive, Doc, Enum, ExternFn, ExternType, ForeignName, Impl, Include,
34 ) -> Vec<Api> { in parse_items() argument
57 fn parse_struct(cx: &mut Errors, mut item: ItemStruct, namespace: &Namespace) -> Result<Api> { in parse_struct() argument
168 Ok(Api::Struct(Struct { in parse_struct()
181 fn parse_enum(cx: &mut Errors, item: ItemEnum, namespace: &Namespace) -> Api { in parse_enum() argument
246 Api::Enum(Enum { in parse_enum()
314 out: &mut Vec<Api>, in parse_foreign_mod() argument
362 Ok(include) => items.push(Api::Include(include)), in parse_foreign_mod()
378 Api::CxxFunction(efn) => efn.unsafety.is_none(), in parse_foreign_mod()
389 Api::CxxType(ety) | Api::RustType(ety) => Some(&ety.name), in parse_foreign_mod()
390 Api::TypeAlias(alias) => Some(&alias.name), in parse_foreign_mod()
396 if let Api::CxxFunction(efn) | Api::RustFunction(efn) = item { in parse_foreign_mod()
436 ) -> Api { in parse_extern_type() argument
468 Lang::Cxx => Api::CxxType, in parse_extern_type()
469 Lang::Rust => Api::RustType, in parse_extern_type()
492 ) -> Result<Api> { in parse_extern_fn() argument
632 Lang::Cxx => Api::CxxFunction, in parse_extern_fn()
633 Lang::Rust => Api::RustFunction, in parse_extern_fn()
662 ) -> Result<Api> { in parse_extern_verbatim() argument
663 |input: ParseStream| -> Result<Api> { in parse_extern_verbatim()
689 ) -> Result<Api> { in parse_extern_verbatim_type() argument
746 fn parse_extern_verbatim_fn(input: ParseStream) -> Result<Api> { in parse_extern_verbatim_fn() argument
762 ) -> Result<Api> { in parse_type_alias() argument
794 Ok(Api::TypeAlias(TypeAlias { in parse_type_alias()
819 ) -> Result<Api> { in parse_extern_type_bounded() argument
875 Lang::Cxx => Api::CxxType, in parse_extern_type_bounded()
876 Lang::Rust => Api::RustType, in parse_extern_type_bounded()
893 fn parse_impl(imp: ItemImpl) -> Result<Api> { in parse_impl() argument
980 Ok(Api::Impl(Impl { in parse_impl()