Lines Matching refs:derive
42 #[derive(Parser, Debug)]
344 /// Derive custom traits on any kind of type. The <CUSTOM> value must be of the shape <REGEX>=<DERIVE> where <DERIVE> is a coma-separated list of derive macros.
347 /// Derive custom traits on a `struct`. The <CUSTOM> value must be of the shape <REGEX>=<DERIVE> where <DERIVE> is a coma-separated list of derive macros.
350 /// Derive custom traits on an `enum. The <CUSTOM> value must be of the shape <REGEX>=<DERIVE> where <DERIVE> is a coma-separated list of derive macros.
353 /// Derive custom traits on a `union`. The <CUSTOM> value must be of the shape <REGEX>=<DERIVE> where <DERIVE> is a coma-separated list of derive macros.
932 #[derive(Debug)]
944 None => "--with-derive-custom",
945 Some(TypeKind::Struct) => "--with-derive-custom-struct",
946 Some(TypeKind::Enum) => "--with-derive-custom-enum",
947 Some(TypeKind::Union) => "--with-derive-custom-union",
984 .expect("Invalid custom derive argument: Missing `=`");