pub struct TokenizablePair<A: ToTokens + Clone, B: ToTokens + Clone>(pub (A, B));
Tuple Fields§
§0: (A, B)
Trait Implementations§
Source§impl<A: Clone + ToTokens + Clone, B: Clone + ToTokens + Clone> Clone for TokenizablePair<A, B>
impl<A: Clone + ToTokens + Clone, B: Clone + ToTokens + Clone> Clone for TokenizablePair<A, B>
Source§fn clone(&self) -> TokenizablePair<A, B>
fn clone(&self) -> TokenizablePair<A, B>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<A, B> ToTokens for TokenizablePair<A, B>
impl<A, B> ToTokens for TokenizablePair<A, B>
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,
Source§impl<A, B> Tokenizable for TokenizablePair<A, B>
impl<A, B> Tokenizable for TokenizablePair<A, B>
type ValueType = (A, B)
fn value_token_stream(&self) -> TokenStream
fn from_value(value: Self::ValueType) -> Self
fn convert_token_stream( ty: &Type, value_path: &TokenStream, ) -> Result<Option<TokenStream>, Error>
Auto Trait Implementations§
impl<A, B> Freeze for TokenizablePair<A, B>
impl<A, B> RefUnwindSafe for TokenizablePair<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for TokenizablePair<A, B>
impl<A, B> Sync for TokenizablePair<A, B>
impl<A, B> Unpin for TokenizablePair<A, B>
impl<A, B> UnwindSafe for TokenizablePair<A, B>where
A: UnwindSafe,
B: 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.