Skip to main content

rename_def

Function rename_def 

Source
pub fn rename_def(
    graph: &Graph,
    def_id: &str,
    name: &str,
    ids: bool,
) -> Result<Edit, String>
Expand description

Rename a type or a link type, given its definition node, and everything that uses the old name: nodes of the type (or links of the link type), rule filters and checks, and link types whose from/to list the type. With ids, nodes of a renamed type whose id follows <type>-name get the new type in their id too (references are fixed).