pub fn same_fn_path_tokens(&self) -> TokenStream {
        match &self.attrs {
            DataAttr::SameFn(f) => quote!(#f),
            DataAttr::Eq => quote!(::core::cmp::PartialEq::eq),
            // this should not be called for DataAttr::Ignore
            DataAttr::Ignore => quote!(compiler_error!),
            DataAttr::Empty => {
                let span = Span::call_site();
                quote_spanned!(span=> druid::Data::same)
            }
        }
    }
/// The tokens to be used as the function for 'same'.
The tokens to be used as the function for 'same'.
The tokens to be used as the function for ' same ' .
pub fn same_fn_path_tokens(&self) -> TokenStream {
        match &self.attrs {
            DataAttr::SameFn(f) => quote!(#f),
            DataAttr::Eq => quote!(::core::cmp::PartialEq::eq),
            // this should not be called for DataAttr::Ignore
            DataAttr::Ignore => quote!(compiler_error!),
            DataAttr::Empty => {
                let span = Span::call_site();
                quote_spanned!(span=> druid::Data::same)
            }
        }
    }
pub fn same_fn_path_tokens ( & self ) -> TokenStream { match & self . attrs { DataAttr :: SameFn ( f ) => quote ! ( f ) , DataAttr :: Eq => quote ! ( core cmp PartialEq eq ) , // this should not be called for DataAttr::Ignore DataAttr :: Ignore => quote ! ( compiler_error ) , DataAttr :: Empty => { let span = Span :: call_site ( ) ; quote_spanned ! ( span druid Data same ) } } }
The tokens to be used as the function for 'same'.
The tokens to be used as the function for ' same ' .
&self
&self