pub struct CExpr {
pub alias: String,
pub fn_name: String,
pub args: Vec<Expr>,
pub span: Range<usize>,
}Expand description
Function call expression: alias '.' fn_name '(' args ')'.
All callables are functions defined in imported C/Pancake files, so the alias is required — there are no local callables. Arguments are parsed as comma-separated expressions.
Fields§
§alias: StringModule/import alias prefix (the as name from an import declaration).
fn_name: StringFunction name being called.
args: Vec<Expr>Argument expressions, in order.
span: Range<usize>Byte span of the whole alias.fn(args) call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CExpr
impl RefUnwindSafe for CExpr
impl Send for CExpr
impl Sync for CExpr
impl Unpin for CExpr
impl UnsafeUnpin for CExpr
impl UnwindSafe for CExpr
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.