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