pub struct MacroInvocation {
pub name: String,
pub dialect: MacroDialect,
pub name_start: usize,
pub open_brace: usize,
pub body_start: usize,
pub body_end: usize,
pub close_brace: usize,
pub name_line: usize,
pub name_column: usize,
pub indentation_column: usize,
pub body_start_line: usize,
pub body_start_column: usize,
}Fields§
§name: String§dialect: MacroDialect§name_start: usize§open_brace: usize§body_start: usize§body_end: usize§close_brace: usize§name_line: usize§name_column: usize§indentation_column: usizeIndentation of the source line containing the macro invocation.
body_start_line: usize§body_start_column: usizeImplementations§
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 moreAuto Trait Implementations§
impl Forget for MacroInvocation
impl Freeze for MacroInvocation
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more