pub struct Invocation {
pub syntax: Spanned<Syntax>,
}
Expand description
A shim for parsing the root level of a macro invocation, so that a session type may be written as a block w/o an extra layer of braces.
Fields§
§syntax: Spanned<Syntax>
The spanned syntax representing a full invocation of the macro.
Implementations§
Trait Implementations§
Source§impl Clone for Invocation
impl Clone for Invocation
Source§fn clone(&self) -> Invocation
fn clone(&self) -> Invocation
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 Invocation
impl Debug for Invocation
Source§impl Parse for Invocation
impl Parse for Invocation
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for Invocation
impl RefUnwindSafe for Invocation
impl !Send for Invocation
impl !Sync for Invocation
impl Unpin for Invocation
impl UnwindSafe for Invocation
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