Struct macro_rules_rt::Transcriber
source · pub struct Transcriber { /* private fields */ }Expand description
Replacement pattern.
Transcriber corresponds to MacroTranscriber (excluding outermost brace) in Macros By Example.
A Transcriber created using FromStr::from_str preserves whitespace in the original string as much as possible.
Implementations§
source§impl Transcriber
impl Transcriber
sourcepub fn parse(input: ParseStream<'_>) -> Result<Self>
pub fn parse(input: ParseStream<'_>) -> Result<Self>
Parse a transcriber.
Unlike FromStr::from_str, non-token information, such as whitespace, is lost.
Transcriber does not implement Parse to prevent information loss using parse_str.
Trait Implementations§
source§impl Clone for Transcriber
impl Clone for Transcriber
source§fn clone(&self) -> Transcriber
fn clone(&self) -> Transcriber
Returns a copy 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 more