pub struct PlaceholderCall<'a> {
pub module: Option<&'a str>,
pub name: &'a str,
pub name_span: Range<usize>,
pub args_raw: &'a str,
}Expand description
One parsed {{ ... }} call body: [MODULE::]FUNC(args_raw).
Single grammar behind every phase: parse-time qualification,
static checking, and runtime dispatch all read the same shape,
so the three can never disagree on what counts as a call.
module is None for bare FUNC(...) heads (statement-scope
resolution decides those); name_span is the byte range of
name inside the input key, so rewriters can splice exactly
the head without touching surrounding spacing.
Fields§
§module: Option<&'a str>MODULE in MODULE::FUNC(...), or None for bare heads.
name: &'a strFunction head (FUNC).
name_span: Range<usize>Byte range of name inside the input key.
args_raw: &'a strRaw bytes between the parens (untrimmed, unsplit).
Trait Implementations§
Source§impl<'a> Clone for PlaceholderCall<'a>
impl<'a> Clone for PlaceholderCall<'a>
Source§impl<'a> Debug for PlaceholderCall<'a>
impl<'a> Debug for PlaceholderCall<'a>
impl<'a> Eq for PlaceholderCall<'a>
Source§impl<'a> PartialEq for PlaceholderCall<'a>
impl<'a> PartialEq for PlaceholderCall<'a>
impl<'a> StructuralPartialEq for PlaceholderCall<'a>
Auto Trait Implementations§
impl<'a> Forget for PlaceholderCall<'a>
impl<'a> Freeze for PlaceholderCall<'a>
impl<'a> Move for PlaceholderCall<'a>
impl<'a> RefUnwindSafe for PlaceholderCall<'a>
impl<'a> Send for PlaceholderCall<'a>
impl<'a> Sync for PlaceholderCall<'a>
impl<'a> Unpin for PlaceholderCall<'a>
impl<'a> UnsafeUnpin for PlaceholderCall<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for PlaceholderCall<'a>where
&'a str: UnwindSafe,
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