pub fn eq_unspanned(&self, other: &TokenTree) -> bool {
        match (self, other) {
            (&TokenTree::Token(_, ref tk), &TokenTree::Token(_, ref tk2)) => tk == tk2,
            (&TokenTree::Delimited(_, ref dl), &TokenTree::Delimited(_, ref dl2)) => {
                (*dl).delim == (*dl2).delim && dl.tts.len() == dl2.tts.len() &&
                {
                    for (tt1, tt2) in dl.tts.iter().zip(dl2.tts.iter()) {
                        if !tt1.eq_unspanned(tt2) {
                            return false;
                        }
                    }
                    true
                }
            }
            (_, _) => false,
        }
    }
/// Check if this TokenTree is equal to the other, regardless of span information.
Check if this TokenTree is equal to the other, regardless of span information.
Check if this TokenTree is equal to the other regardless of span information .
pub fn eq_unspanned(&self, other: &TokenTree) -> bool {
        match (self, other) {
            (&TokenTree::Token(_, ref tk), &TokenTree::Token(_, ref tk2)) => tk == tk2,
            (&TokenTree::Delimited(_, ref dl), &TokenTree::Delimited(_, ref dl2)) => {
                (*dl).delim == (*dl2).delim && dl.tts.len() == dl2.tts.len() &&
                {
                    for (tt1, tt2) in dl.tts.iter().zip(dl2.tts.iter()) {
                        if !tt1.eq_unspanned(tt2) {
                            return false;
                        }
                    }
                    true
                }
            }
            (_, _) => false,
        }
    }
pub fn eq_unspanned ( & self , other : & TokenTree ) -> bool { match ( self , other ) { ( & TokenTree :: Token ( _ , ref tk ) , & TokenTree :: Token ( _ , ref tk2 ) ) => tk == tk2 , ( & TokenTree :: Delimited ( _ , ref dl ) , & TokenTree :: Delimited ( _ , ref dl2 ) ) => { ( * dl ) . delim == ( * dl2 ) . delim && dl . tts . len ( ) == dl2 . tts . len ( ) && { for ( tt1 , tt2 ) in dl . tts . iter ( ) . zip ( dl2 . tts . iter ( ) ) { if ! tt1 . eq_unspanned ( tt2 ) { return false ; } } true } } ( _ , _ ) => false , } }
Check if this TokenTree is equal to the other, regardless of span information.
Check if this TokenTree is equal to the other regardless of span information .
&self
other
&TokenTree
&self
other
&TokenTree