Struct impl_tools_lib::IdentFormatter
source · pub struct IdentFormatter(_);
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 RefUnwindSafe for IdentFormatter
impl Send for IdentFormatter
impl Sync for IdentFormatter
impl Unpin 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