pub fn resolve(&self, link: &str) -> Option<&str> {
        if let Some(link) = self.url_overrides.get(link) {
            return Some(link);
        }
        let temporary;
        let base = if let Ok(link) = syn::parse_str::<syn::Path>(link) {
            match link.segments.last() {
                None => return None,
                Some(base) => {
                    temporary = base.ident.to_string();
                    &temporary
                }
            }
        } else {
            link
        };

        if let Some(path) = self.url_overrides.get(base) {
            Some(path)
        } else {
            let base = match self.rust_to_godot.get(base) {
                Some(base) => base.as_str(),
                None => base,
            };
            if let Some(path) = self.godot_items.get(base) {
                Some(path)
            } else {
                None
            }
        }
    }
/// Resolve a name to the location it must link to.
///
/// `link` must already have been stripped off the enclosing \`.
Resolve a name to the location it must link to.
`link` must already have been stripped off the enclosing \`.
Resolve a name to the location it must link to . ` link ` must already have been stripped off the enclosing \ ` .
pub fn resolve(&self, link: &str) -> Option<&str> {
        if let Some(link) = self.url_overrides.get(link) {
            return Some(link);
        }
        let temporary;
        let base = if let Ok(link) = syn::parse_str::<syn::Path>(link) {
            match link.segments.last() {
                None => return None,
                Some(base) => {
                    temporary = base.ident.to_string();
                    &temporary
                }
            }
        } else {
            link
        };
        if let Some(path) = self.url_overrides.get(base) {
            Some(path)
        } else {
            let base = match self.rust_to_godot.get(base) {
                Some(base) => base.as_str(),
                None => base,
            };
            if let Some(path) = self.godot_items.get(base) {
                Some(path)
            } else {
                None
            }
        }
    }
pub fn resolve ( & self , link : & str ) -> Option < & str > { if let Some ( link ) = self . url_overrides . get ( link ) { return Some ( link ) ; } let temporary ; let base = if let Ok ( link ) = syn :: parse_str :: < syn :: Path > ( link ) { match link . segments . last ( ) { None => return None , Some ( base ) => { temporary = base . ident . to_string ( ) ; & temporary } } } else { link } ; if let Some ( path ) = self . url_overrides . get ( base ) { Some ( path ) } else { let base = match self . rust_to_godot . get ( base ) { Some ( base ) => base . as_str ( ) , None => base , } ; if let Some ( path ) = self . godot_items . get ( base ) { Some ( path ) } else { None } } }
Resolve a name to the location it must link to.
Resolve a name to the location it must link to .
&self
link
&str
&self
link
&str