Struct flexi_parse::ToTokensWrapper
source · pub struct ToTokensWrapper<T: ?Sized>(pub T);
Available on crate feature
proc-macro2
only.Expand description
A wrapper for types that implement crate::to_tokens::ToTokens
which
implements quote::ToTokens
.
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T: Clone + ?Sized> Clone for ToTokensWrapper<T>
impl<T: Clone + ?Sized> Clone for ToTokensWrapper<T>
source§fn clone(&self) -> ToTokensWrapper<T>
fn clone(&self) -> ToTokensWrapper<T>
Returns a copy 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<T: PartialEq + ?Sized> PartialEq for ToTokensWrapper<T>
impl<T: PartialEq + ?Sized> PartialEq for ToTokensWrapper<T>
source§fn eq(&self, other: &ToTokensWrapper<T>) -> bool
fn eq(&self, other: &ToTokensWrapper<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd + ?Sized> PartialOrd for ToTokensWrapper<T>
impl<T: PartialOrd + ?Sized> PartialOrd for ToTokensWrapper<T>
source§fn partial_cmp(&self, other: &ToTokensWrapper<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &ToTokensWrapper<T>) -> Option<Ordering>
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> ToTokens for ToTokensWrapper<T>
impl<T: ToTokens> ToTokens for ToTokensWrapper<T>
source§fn to_tokens(&self, tokens: &mut TokenStream2)
fn to_tokens(&self, tokens: &mut TokenStream2)
source§fn to_token_stream(&self) -> TokenStream2
fn to_token_stream(&self) -> TokenStream2
source§fn into_token_stream(self) -> TokenStream2
fn into_token_stream(self) -> TokenStream2
impl<T: Copy + ?Sized> Copy for ToTokensWrapper<T>
impl<T: Eq + ?Sized> Eq for ToTokensWrapper<T>
impl<T: ?Sized> StructuralEq for ToTokensWrapper<T>
impl<T: ?Sized> StructuralPartialEq for ToTokensWrapper<T>
Auto Trait Implementations§
impl<T: ?Sized> RefUnwindSafe for ToTokensWrapper<T>where
T: RefUnwindSafe,
impl<T: ?Sized> Send for ToTokensWrapper<T>where
T: Send,
impl<T: ?Sized> Sync for ToTokensWrapper<T>where
T: Sync,
impl<T: ?Sized> Unpin for ToTokensWrapper<T>where
T: Unpin,
impl<T: ?Sized> UnwindSafe for ToTokensWrapper<T>where
T: 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