pub struct TokenWrapper<'a, T>(pub &'a T);
Tuple Fields§
§0: &'a T
Trait Implementations§
Source§impl<'a, T> ToTokens for TokenWrapper<'a, T>where
T: CustomToTokens<'a>,
impl<'a, T> ToTokens for TokenWrapper<'a, T>where
T: CustomToTokens<'a>,
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<'a, T> Freeze for TokenWrapper<'a, T>
impl<'a, T> RefUnwindSafe for TokenWrapper<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for TokenWrapper<'a, T>where
T: Sync,
impl<'a, T> Sync for TokenWrapper<'a, T>where
T: Sync,
impl<'a, T> Unpin for TokenWrapper<'a, T>
impl<'a, T> UnwindSafe for TokenWrapper<'a, T>where
T: RefUnwindSafe,
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