enchant_spells

Function enchant_spells 

Source
pub fn enchant_spells(
    waywindows: Vec<SpellWin>,
    states: Vec<Option<Arc<RwLock<dyn ForeignController>>>>,
    set_callbacks: Vec<Option<Box<dyn FnMut(Arc<RwLock<dyn ForeignController>>)>>>,
) -> Result<(), Box<dyn Error>>
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.