pub struct Take;Expand description
Keeps only the first N tokens from the stream.
The argument must be a valid integer literal, e.g., [[ 3 ]].
Trait Implementations§
Source§impl Ord for Take
impl Ord for Take
Source§impl PartialOrd for Take
impl PartialOrd for Take
Source§impl Transformer for Take
impl Transformer for Take
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 Take
impl Eq for Take
impl StructuralPartialEq for Take
Auto Trait Implementations§
impl Freeze for Take
impl RefUnwindSafe for Take
impl Send for Take
impl Sync for Take
impl Unpin for Take
impl UnsafeUnpin for Take
impl UnwindSafe for Take
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