X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Frustdoc-json-types%2Flib.rs;h=1ee96b8231cd1418349c17977a645c44d2d75a2c;hb=668976b80ad6ca3bfbc0cddf9e676b289c07fc49;hp=dd40f3507523c1a612bd7793e98ca0ead7717fe1;hpb=69df0f2c2f665d7f4e38a3579a81d4efc0d81034;p=rust.git diff --git a/src/rustdoc-json-types/lib.rs b/src/rustdoc-json-types/lib.rs index dd40f350752..1ee96b8231c 100644 --- a/src/rustdoc-json-types/lib.rs +++ b/src/rustdoc-json-types/lib.rs @@ -615,6 +615,10 @@ pub struct FunctionPointer { #[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] pub struct FnDecl { + /// List of argument names and their type. + /// + /// Note that not all names will be valid identifiers, as some of + /// them may be patterns. pub inputs: Vec<(String, Type)>, pub output: Option, pub c_variadic: bool,