Skip to main content

move_concept

Function move_concept 

Source
pub fn move_concept(
    bundle: &Bundle,
    source: &ConceptId,
    target: &ConceptId,
    options: &MoveOptions,
) -> Result<MoveReport, RefactorError>
Expand description

Moves or renames a concept, rewriting all incoming links and rebasing outgoing links.

ยงErrors

Returns RefactorError::SameSourceAndTarget if source equals target, RefactorError::ConceptNotFound if source does not exist, RefactorError::ConceptAlreadyExists if target exists and force is false, or RefactorError::Io on filesystem error.