pub struct MacroInvocation {
pub name: InternedStr,
pub call_loc: SourceLocation,
pub args: Option<Vec<String>>,
}Expand description
単一のマクロ呼び出し情報
Fields§
§name: InternedStrマクロ名
call_loc: SourceLocation呼び出し位置
args: Option<Vec<String>>関数マクロの場合、引数のテキスト表現
Implementations§
Source§impl MacroInvocation
impl MacroInvocation
Sourcepub fn new(name: InternedStr, call_loc: SourceLocation) -> Self
pub fn new(name: InternedStr, call_loc: SourceLocation) -> Self
新しいマクロ呼び出し情報を作成
Sourcepub fn with_args(
name: InternedStr,
call_loc: SourceLocation,
args: Vec<String>,
) -> Self
pub fn with_args( name: InternedStr, call_loc: SourceLocation, args: Vec<String>, ) -> Self
関数マクロの呼び出し情報を作成
Trait Implementations§
Source§impl Clone for MacroInvocation
impl Clone for MacroInvocation
Source§fn clone(&self) -> MacroInvocation
fn clone(&self) -> MacroInvocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MacroInvocation
impl Debug for MacroInvocation
Source§impl PartialEq for MacroInvocation
impl PartialEq for MacroInvocation
Source§fn eq(&self, other: &MacroInvocation) -> bool
fn eq(&self, other: &MacroInvocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MacroInvocation
Auto Trait Implementations§
impl Freeze for MacroInvocation
impl RefUnwindSafe for MacroInvocation
impl Send for MacroInvocation
impl Sync for MacroInvocation
impl Unpin for MacroInvocation
impl UnsafeUnpin for MacroInvocation
impl UnwindSafe for MacroInvocation
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