lol idk #1

Open
Quaternions wants to merge 826 commits from StrafesNET/strafe-project:master into master
Showing only changes of commit f84bd5651e - Show all commits

View File

@ -10,16 +10,13 @@ pub fn class_is_a(class:&str,superclass:&str)->bool{
) )
} }
pub struct Context{ pub struct Context<'a>{
pub(crate)dom:WeakDom, pub(crate)dom:&'a mut WeakDom,
} }
impl Context{ impl Context<'_>{
pub const fn new(dom:WeakDom)->Self{ pub fn new(dom:&mut WeakDom)->Context<'_>{
Self{dom} Context{dom}
}
pub fn into_inner(self)->WeakDom{
self.dom
} }
/// Creates an iterator over all items of a particular class. /// Creates an iterator over all items of a particular class.
pub fn superclass_iter<'a>(&'a self,superclass:&'a str)->impl Iterator<Item=Ref>+'a{ pub fn superclass_iter<'a>(&'a self,superclass:&'a str)->impl Iterator<Item=Ref>+'a{