pub enum CallOperation {
Function,
UfcsFunction,
ReceiverMethod {
is_public: bool,
},
BoundMethod {
bound: Type,
requirement: Box<InterfaceRequirement>,
},
Native {
kind: NativeTypeKind,
method: EcoString,
},
NativeConstructor {
kind: NativeTypeKind,
method: EcoString,
},
TupleStructConstructor {
owner: Symbol,
is_newtype: bool,
},
AssertType,
Zero,
TypeConversion,
Unavailable,
}Expand description
The function, method or built-in operation that a callee selects.
Variants§
Function
A function value, such as a local, a field, a closure or a declared function.
UfcsFunction
A method that lowers to a free function, called on its receiver.
ReceiverMethod
A receiver method called through its type, with the receiver as the first argument.
BoundMethod
A method that a type parameter takes from the bound that declares it.
Native
A method of a built-in type.
NativeConstructor
A constructor of a built-in type.
TupleStructConstructor
AssertType
Zero
TypeConversion
No operation, because inference rejected the call before it could select one.
Trait Implementations§
Source§impl Clone for CallOperation
impl Clone for CallOperation
Source§impl Debug for CallOperation
impl Debug for CallOperation
Source§impl PartialEq for CallOperation
impl PartialEq for CallOperation
impl StructuralPartialEq for CallOperation
Auto Trait Implementations§
impl Forget for CallOperation
impl Freeze for CallOperationwhere
*const ArcInner<Box<[Type]>> is !null: Freeze,
PhantomData<ArcInner<Box<[Type]>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<FunctionType> is !null: Freeze,
PhantomData<ArcInner<FunctionType>>: Freeze,
PhantomData<Type>: Freeze,
*const Type is !null: Freeze,
*const ArcInner<Spelling> is !null: Freeze,
PhantomData<ArcInner<Spelling>>: Freeze,
*const InterfaceRequirement is !null: Freeze,
PhantomData<InterfaceRequirement>: Freeze,
impl Move for CallOperation
impl RefUnwindSafe for CallOperation
impl Send for CallOperation
impl Sync for CallOperation
impl Unpin for CallOperation
impl UnsafeUnpin for CallOperationwhere
*const ArcInner<Box<[Type]>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Box<[Type]>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<FunctionType> is !null: UnsafeUnpin,
PhantomData<ArcInner<FunctionType>>: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
*const ArcInner<Spelling> is !null: UnsafeUnpin,
PhantomData<ArcInner<Spelling>>: UnsafeUnpin,
*const InterfaceRequirement is !null: UnsafeUnpin,
PhantomData<InterfaceRequirement>: UnsafeUnpin,
impl UnwindSafe for CallOperationwhere
Arc<Box<[Type]>>: UnwindSafe,
NonNull<u8>: UnwindSafe,
Arc<FunctionType>: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
Arc<Spelling>: UnwindSafe,
BoxRaw<InterfaceRequirement>: 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