limited_item_prefix_should_insert

Function limited_item_prefix_should_insert 

Source
pub fn limited_item_prefix_should_insert<'a, 'b, F>(
    itype: Item,
    key: Token,
    get_other: F,
) -> Option<Token>
where F: Fn(&'a str) -> Option<&'b Token>,
Expand description

Used for scripted triggers, effects, and modifiers. Handles the REPLACE: etc prefixes, and returns the name to insert under iff the new item should be inserted.