Function ruma::push::insert_and_move_rule
source ยท pub fn insert_and_move_rule<T>(
set: &mut IndexSet<T>,
rule: T,
default_position: usize,
after: Option<&str>,
before: Option<&str>,
) -> Result<(), InsertPushRuleError>
Expand description
Insert the rule in the given indexset and move it to the given position.