Convert Rust to use discriminated unions
[deliverable/binutils-gdb.git] / gdb / rust-lang.h
index 554a440d584949dcd25615eba97b8a8db257b528..ce30e3327616ffa0de87e2a7a9e2b98c0e23810d 100644 (file)
@@ -39,6 +39,11 @@ extern bool rust_tuple_struct_type_p (struct type *type);
    stringif no crate name can be found.  */
 extern std::string rust_crate_for_block (const struct block *block);
 
+/* Returns the last segment of a Rust path like foo::bar::baz.  Will
+   not handle cases where the last segment contains generics.  */
+
+extern const char *rust_last_path_segment (const char *path);
+
 /* Create a new slice type.  NAME is the name of the type.  ELT_TYPE
    is the type of the elements of the slice.  USIZE_TYPE is the Rust
    "usize" type to use.  The new type is allocated whereever ELT_TYPE
This page took 0.027655 seconds and 4 git commands to generate.