#[non_exhaustive]pub enum CallForm {
NamedFunction,
Coderef,
}Expand description
Parser-observed call shape.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NamedFunction
A named function call such as foo(...).
Coderef
A coderef/dynamic callee call such as $callback->(...).
Trait Implementations§
impl Copy for CallForm
impl Eq for CallForm
impl StructuralPartialEq for CallForm
Auto Trait Implementations§
impl Freeze for CallForm
impl RefUnwindSafe for CallForm
impl Send for CallForm
impl Sync for CallForm
impl Unpin for CallForm
impl UnsafeUnpin for CallForm
impl UnwindSafe for CallForm
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