pub struct Pair<T1: Parse + ToTokens, T2: Parse + ToTokens>(pub T1, pub T2);Expand description
Parse as much elements as possible.
Tuple Fields§
§0: T1§1: T2Implementations§
Trait Implementations§
Source§impl<T1: Default + Parse + ToTokens, T2: Default + Parse + ToTokens> Default for Pair<T1, T2>
impl<T1: Default + Parse + ToTokens, T2: Default + Parse + ToTokens> Default for Pair<T1, T2>
impl<T1: Eq + Parse + ToTokens, T2: Eq + Parse + ToTokens> Eq for Pair<T1, T2>
Source§impl<T1: Parse + ToTokens, T2: Parse + ToTokens, Into1: Into<T1>, Into2: Into<T2>> From<(Into1, Into2)> for Pair<T1, T2>
impl<T1: Parse + ToTokens, T2: Parse + ToTokens, Into1: Into<T1>, Into2: Into<T2>> From<(Into1, Into2)> for Pair<T1, T2>
Source§fn from(src: (Into1, Into2)) -> Self
fn from(src: (Into1, Into2)) -> Self
Converts to this type from the input type.
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 + Parse + ToTokens, T2: PartialEq + Parse + ToTokens> PartialEq for Pair<T1, T2>
impl<T1: PartialEq + Parse + ToTokens, T2: PartialEq + Parse + ToTokens> PartialEq for Pair<T1, T2>
impl<T1: PartialEq + Parse + ToTokens, T2: PartialEq + Parse + ToTokens> StructuralPartialEq 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,
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> UnsafeUnpin for Pair<T1, T2>where
T1: UnsafeUnpin,
T2: UnsafeUnpin,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
Source§fn vectorized_into(self) -> Target
fn vectorized_into(self) -> Target
Performs the conversion.