fn update(&mut self, def_id: LocalDefId, level: Option<AccessLevel>) -> Option<AccessLevel> {
        let old_level = self.get(def_id);
        // Accessibility levels can only grow.
        if level > old_level {
            self.access_levels.map.insert(def_id, level.unwrap());
            self.changed = true;
            level
        } else {
            old_level
        }
    }
/// Updates node level and returns the updated level.
Updates node level and returns the updated level.
Updates node level and returns the updated level .
fn update(&mut self, def_id: LocalDefId, level: Option<AccessLevel>) -> Option<AccessLevel> {
        let old_level = self.get(def_id);
        // Accessibility levels can only grow.
        if level > old_level {
            self.access_levels.map.insert(def_id, level.unwrap());
            self.changed = true;
            level
        } else {
            old_level
        }
    }
fn update ( & mut self , def_id : LocalDefId , level : Option < AccessLevel > ) -> Option < AccessLevel > { let old_level = self . get ( def_id ) ; // Accessibility levels can only grow. if level > old_level { self . access_levels . map . insert ( def_id , level . unwrap ( ) ) ; self . changed = true ; level } else { old_level } }
Updates node level and returns the updated level.
Updates node level and returns the updated level .
&mut self
def_id
LocalDefId
level
Option<AccessLevel>
&mut self
def_id
LocalDefId
level
Option<AccessLevel>