pub struct Reverse;Expand description
A transformer that reverses the sequence of the token trees in the stream.
§Example
[< a b c >]:reverse -> c b a
Trait Implementations§
Source§impl Ord for Reverse
impl Ord for Reverse
Source§impl PartialOrd for Reverse
impl PartialOrd for Reverse
Source§impl Transformer for Reverse
impl Transformer for Reverse
Source§fn transform(
&mut self,
input: TokenStream,
argument: TokenStream,
) -> Result<TokenStream, Error>
fn transform( &mut self, input: TokenStream, argument: TokenStream, ) -> Result<TokenStream, Error>
Transforms an input token stream into an output one. Read more
impl Copy for Reverse
impl Eq for Reverse
impl StructuralPartialEq for Reverse
Auto Trait Implementations§
impl Freeze for Reverse
impl RefUnwindSafe for Reverse
impl Send for Reverse
impl Sync for Reverse
impl Unpin for Reverse
impl UnsafeUnpin for Reverse
impl UnwindSafe for Reverse
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