pub struct Enumerate(/* private fields */);Expand description
Yields an incrementing integer literal every time it is called.
The integer is internally an u32, and is incremented with wrapping arithmetic.
Trait Implementations§
Source§impl Ord for Enumerate
impl Ord for Enumerate
Source§impl PartialOrd for Enumerate
impl PartialOrd for Enumerate
Source§impl Transformer for Enumerate
impl Transformer for Enumerate
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 Eq for Enumerate
impl StructuralPartialEq for Enumerate
Auto Trait Implementations§
impl Freeze for Enumerate
impl RefUnwindSafe for Enumerate
impl Send for Enumerate
impl Sync for Enumerate
impl Unpin for Enumerate
impl UnsafeUnpin for Enumerate
impl UnwindSafe for Enumerate
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