pub fn is_self_path(&self, path: &Path) -> bool
    {
        // The self type must be specified as ident. We can't resolve
        // the current path of the com_class so we can't figure out whether
        // `foo::bar::ThisStruct` _really_ is `ThisStruct`.
        if let Some(ident) = path.get_ident() {
            // The self type can be specified either with the type name or
            // by using 'Self' as type name.
            if ident == &self.name || ident == "Self" {
                return true;
            }
        }

        false
    }
/// Figure out whether the path refers to the current struct.
Figure out whether the path refers to the current struct.
Figure out whether the path refers to the current struct .
pub fn is_self_path(&self, path: &Path) -> bool
    {
        // The self type must be specified as ident. We can't resolve
        // the current path of the com_class so we can't figure out whether
        // `foo::bar::ThisStruct` _really_ is `ThisStruct`.
        if let Some(ident) = path.get_ident() {
            // The self type can be specified either with the type name or
            // by using 'Self' as type name.
            if ident == &self.name || ident == "Self" {
                return true;
            }
        }
        false
    }
pub fn is_self_path ( & self , path : & Path ) -> bool { // The self type must be specified as ident. We can't resolve // the current path of the com_class so we can't figure out whether // `foo::bar::ThisStruct` _really_ is `ThisStruct`. if let Some ( ident ) = path . get_ident ( ) { // The self type can be specified either with the type name or // by using 'Self' as type name. if ident == & self . name || ident == " " { return true ; } } false }
Figure out whether the path refers to the current struct.
Figure out whether the path refers to the current struct .
&self
path
&Path
&self
path
&Path