pub struct TokenCmpWrapper<T: ToTokens>(pub T);
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T> Deref for TokenCmpWrapper<T>where
T: ToTokens,
impl<T> Deref for TokenCmpWrapper<T>where T: ToTokens,
source§impl<'a, T, U> From<U> for TokenCmpWrapper<MaybeBorrowed<'a, T>>where
MaybeBorrowed<'a, T>: ToTokens,
U: Into<MaybeBorrowed<'a, T>>,
impl<'a, T, U> From<U> for TokenCmpWrapper<MaybeBorrowed<'a, T>>where MaybeBorrowed<'a, T>: ToTokens, U: Into<MaybeBorrowed<'a, T>>,
source§impl<T> Ord for TokenCmpWrapper<T>where
T: ToTokens,
impl<T> Ord for TokenCmpWrapper<T>where T: ToTokens,
source§impl<T, U> PartialEq<TokenCmpWrapper<U>> for TokenCmpWrapper<T>where
T: ToTokens,
U: ToTokens,
impl<T, U> PartialEq<TokenCmpWrapper<U>> for TokenCmpWrapper<T>where T: ToTokens, U: ToTokens,
source§fn eq(&self, other: &TokenCmpWrapper<U>) -> bool
fn eq(&self, other: &TokenCmpWrapper<U>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> PartialOrd<TokenCmpWrapper<T>> for TokenCmpWrapper<T>where
T: ToTokens,
impl<T> PartialOrd<TokenCmpWrapper<T>> for TokenCmpWrapper<T>where T: ToTokens,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> ToTokens for TokenCmpWrapper<T>where
T: ToTokens,
impl<T> ToTokens for TokenCmpWrapper<T>where T: ToTokens,
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<T> Eq for TokenCmpWrapper<T>where T: ToTokens,
Auto Trait Implementations§
impl<T> RefUnwindSafe for TokenCmpWrapper<T>where T: RefUnwindSafe,
impl<T> Send for TokenCmpWrapper<T>where T: Send,
impl<T> Sync for TokenCmpWrapper<T>where T: Sync,
impl<T> Unpin for TokenCmpWrapper<T>where T: Unpin,
impl<T> UnwindSafe for TokenCmpWrapper<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> AnyExt for Twhere
T: Any + ?Sized,
impl<T> AnyExt for Twhere T: Any + ?Sized,
source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where T: Any,
Attempts to downcast this to
T
behind referencesource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where T: Any,
Attempts to downcast this to
T
behind mutable referencesource§fn downcast_rc<T>(
this: Rc<Self, Global>
) -> Result<Rc<T, Global>, Rc<Self, Global>>where
T: Any,
fn downcast_rc<T>( this: Rc<Self, Global> ) -> Result<Rc<T, Global>, Rc<Self, Global>>where T: Any,
Attempts to downcast this to
T
behind Rc
pointersource§fn downcast_arc<T>(
this: Arc<Self, Global>
) -> Result<Arc<T, Global>, Arc<Self, Global>>where
T: Any,
fn downcast_arc<T>( this: Arc<Self, Global> ) -> Result<Arc<T, Global>, Arc<Self, Global>>where T: Any,
Attempts to downcast this to
T
behind Arc
pointersource§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<'a, T, U> ResolveBounds<'a, T> for Uwhere
T: AssertableWithBounds<'a, U> + 'a,
impl<'a, T, U> ResolveBounds<'a, T> for Uwhere T: AssertableWithBounds<'a, U> + 'a,
fn resolve_for( self, assertable: impl Into<MaybeBorrowed<'a, T>> ) -> ResolvedBounds<'a, U, T>
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.