pub enum CallableCreateKind {
Function(Box<Expr>),
Method {
object: Box<Expr>,
method: Box<Expr>,
},
NullsafeMethod {
object: Box<Expr>,
method: Box<Expr>,
},
StaticMethod {
class: Box<Expr>,
method: Box<Expr>,
},
}Expand description
The callee of a first-class callable.
Variants§
Function(Box<Expr>)
f(...).
Method
$obj->method(...).
NullsafeMethod
$obj?->method(...).
StaticMethod
Class::method(...).
Trait Implementations§
Source§impl Clone for CallableCreateKind
impl Clone for CallableCreateKind
Source§impl Debug for CallableCreateKind
impl Debug for CallableCreateKind
Auto Trait Implementations§
impl Freeze for CallableCreateKind
impl RefUnwindSafe for CallableCreateKind
impl Send for CallableCreateKind
impl Sync for CallableCreateKind
impl Unpin for CallableCreateKind
impl UnsafeUnpin for CallableCreateKind
impl UnwindSafe for CallableCreateKind
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