Skip to main content

enchant_spells

Function enchant_spells 

Source
pub fn enchant_spells(
    waywindows: Vec<SpellWin>,
    states: Vec<Option<State>>,
    set_callbacks: Vec<Option<Box<dyn FnMut(State)>>>,
) -> Result<(), Box<dyn Error>>
👎Deprecated since 1.0.2: Use cast_spell macro instead.
Expand description

This is the event loop which is to be called when initialising multiple windows through a single main file. It is important to remember that Each value of these vectors corresponds to the number on which a widget is initialised. So, this function will panic if the length of vectors of various types mentioned here are not equal.For more information on checking the arguments, view [cast_spell].