pub enum BodyPiece {
Run(u32, u32),
Parameter(usize),
}Expand description
One piece of a macro body’s Tokens::substitution_plan.
Variants§
Run(u32, u32)
The body’s own tokens [start, end).
Parameter(usize)
Parameter #n (1-based, as written; 0 or any n above the arguments read substitutes nothing, as
Tokens::substitute_parameters does).
Trait Implementations§
impl Copy for BodyPiece
impl Eq for BodyPiece
impl StructuralPartialEq for BodyPiece
Auto Trait Implementations§
impl Freeze for BodyPiece
impl RefUnwindSafe for BodyPiece
impl Send for BodyPiece
impl Sync for BodyPiece
impl Unpin for BodyPiece
impl UnsafeUnpin for BodyPiece
impl UnwindSafe for BodyPiece
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more