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 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 Transcriber
impl Debug for Transcriber
Auto Trait Implementations§
impl Freeze for Transcriber
impl RefUnwindSafe for Transcriber
impl !Send for Transcriber
impl !Sync for Transcriber
impl Unpin for Transcriber
impl UnwindSafe for Transcriber
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