pub struct PushRight;Expand description
Appends the provided token stream to the end (right) of the input token stream.
§Arguments
This takes a singular TokenStream as argument.
§Example
[< a b >]:push_right[[c]] ->a b c
Trait Implementations§
Source§impl Ord for PushRight
impl Ord for PushRight
Source§impl PartialOrd for PushRight
impl PartialOrd for PushRight
Source§impl Pass for PushRight
impl Pass for PushRight
Source§type Argument = TokenStream
type Argument = TokenStream
The argument type used by this pass. Read more
Source§fn through(
&mut self,
input: TokenStream,
right: Self::Argument,
) -> Result<TokenStream>
fn through( &mut self, input: TokenStream, right: Self::Argument, ) -> Result<TokenStream>
Pass-through an input [token stream] with an appropiate source-parsable argument.
impl Copy for PushRight
impl Eq for PushRight
impl StructuralPartialEq for PushRight
Auto Trait Implementations§
impl Freeze for PushRight
impl RefUnwindSafe for PushRight
impl Send for PushRight
impl Sync for PushRight
impl Unpin for PushRight
impl UnsafeUnpin for PushRight
impl UnwindSafe for PushRight
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> Transformer for T
impl<T> Transformer for T
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