/// A quicker way, if you don't care whether it is a Ref or a Def
A quicker way, if you don't care whether it is a Ref or a Def
A quicker way if you don ' t care whether it is a Ref or a Def
pub fn value(&self) -> &str {
        match self {
            DefinedBy::Ref(s) => s.as_str(),
            DefinedBy::Type(s) => s.as_str(),
        }
    }
pub fn value ( & self ) -> & str { match self { DefinedBy :: Ref ( s ) => s . as_str ( ) , DefinedBy :: Type ( s ) => s . as_str ( ) , } }
A quicker way, if you don't care whether it is a Ref or a Def
A quicker way if you don ' t care whether it is a Ref or a Def
&self