pub fn insert_and_move_rule<T>(
    set: &mut IndexSet<T>,
    rule: T,
    default_position: usize,
    after: Option<&str>,
    before: Option<&str>
) -> Result<(), InsertPushRuleError>
where T: Hash + Eq, str: Equivalent<T>,
Expand description

Insert the rule in the given indexset and move it to the given position.