pub struct IdentFormatter(/* private fields */);Expand description
Tool to make a formatted Ident
Implementations§
Source§impl IdentFormatter
impl IdentFormatter
Sourcepub fn make_call_site(&mut self, args: Arguments<'_>) -> Ident
pub fn make_call_site(&mut self, args: Arguments<'_>) -> Ident
Construct a new Ident, using Span::call_site
§Example
let mut idfmt = IdentFormatter::new();
let ident = idfmt.make_call_site(format_args!("x{}", 6));
assert_eq!(ident, "x6");Auto Trait Implementations§
impl Freeze for IdentFormatter
impl RefUnwindSafe for IdentFormatter
impl Send for IdentFormatter
impl Sync for IdentFormatter
impl Unpin for IdentFormatter
impl UnsafeUnpin for IdentFormatter
impl UnwindSafe for IdentFormatter
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