pub struct Skip;Expand description
Discards the first N tokens from the stream.
§Arguments
This takes a single syn::LitInt as argument (e.g., [[ 2 ]]).
§Example
[< a b c d >]:skip[[2]] ->c d
Trait Implementations§
Source§impl Ord for Skip
impl Ord for Skip
Source§impl PartialOrd for Skip
impl PartialOrd for Skip
impl Copy for Skip
impl Eq for Skip
impl StructuralPartialEq for Skip
Auto Trait Implementations§
impl Freeze for Skip
impl RefUnwindSafe for Skip
impl Send for Skip
impl Sync for Skip
impl Unpin for Skip
impl UnsafeUnpin for Skip
impl UnwindSafe for Skip
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