Struct macro_tools::orphan::Pair
source · pub struct Pair<T1: Element, T2: Element>(pub T1, pub T2);
Expand description
Pair of two elements of parsing.
Tuple Fields§
§0: T1
§1: T2
Implementations§
Trait Implementations§
source§impl From<Pair<Many<AttributesInner>, Ident>> for Ident
impl From<Pair<Many<AttributesInner>, Ident>> for Ident
source§fn from(src: AttributedIdent) -> Self
fn from(src: AttributedIdent) -> Self
Converts to this type from the input type.
source§impl<T1: PartialEq + Element, T2: PartialEq + Element> PartialEq for Pair<T1, T2>
impl<T1: PartialEq + Element, T2: PartialEq + Element> PartialEq for Pair<T1, T2>
source§impl<T1, T2> ToTokens for Pair<T1, T2>
impl<T1, T2> ToTokens for Pair<T1, T2>
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl<T1: Eq + Element, T2: Eq + Element> Eq for Pair<T1, T2>
impl<T1: Element, T2: Element> StructuralPartialEq for Pair<T1, T2>
Auto Trait Implementations§
impl<T1, T2> Freeze for Pair<T1, T2>
impl<T1, T2> RefUnwindSafe for Pair<T1, T2>where
T1: RefUnwindSafe,
T2: RefUnwindSafe,
impl<T1, T2> Send for Pair<T1, T2>
impl<T1, T2> Sync for Pair<T1, T2>
impl<T1, T2> Unpin for Pair<T1, T2>
impl<T1, T2> UnwindSafe for Pair<T1, T2>where
T1: UnwindSafe,
T2: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.