pub struct Intersperse;Expand description
Inserts the argument between every token tree in the input.
Trait Implementations§
Source§impl Clone for Intersperse
impl Clone for Intersperse
Source§fn clone(&self) -> Intersperse
fn clone(&self) -> Intersperse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Intersperse
impl Debug for Intersperse
Source§impl Default for Intersperse
impl Default for Intersperse
Source§fn default() -> Intersperse
fn default() -> Intersperse
Returns the “default value” for a type. Read more
Source§impl Hash for Intersperse
impl Hash for Intersperse
Source§impl Ord for Intersperse
impl Ord for Intersperse
Source§fn cmp(&self, other: &Intersperse) -> Ordering
fn cmp(&self, other: &Intersperse) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Intersperse
impl PartialEq for Intersperse
Source§impl PartialOrd for Intersperse
impl PartialOrd for Intersperse
Source§impl Transformer for Intersperse
impl Transformer for Intersperse
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 Intersperse
impl Eq for Intersperse
impl StructuralPartialEq for Intersperse
Auto Trait Implementations§
impl Freeze for Intersperse
impl RefUnwindSafe for Intersperse
impl Send for Intersperse
impl Sync for Intersperse
impl Unpin for Intersperse
impl UnsafeUnpin for Intersperse
impl UnwindSafe for Intersperse
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