pub enum CallType {
BuiltinFunction(GlobalFunction),
Intrinsic(Intrinsic),
BuiltinValueMethod {
method: ValueMethod,
typ: TypeId,
},
BuiltinAssociatedFunction {
contract: ContractId,
function: ContractTypeMethod,
},
AssociatedFunction {
typ: TypeId,
function: FunctionId,
},
ValueMethod {
typ: TypeId,
method: FunctionId,
},
TraitValueMethod {
trait_id: TraitId,
method: FunctionSigId,
generic_type: Generic,
},
External {
contract: ContractId,
function: FunctionId,
},
Pure(FunctionId),
TypeConstructor(TypeId),
EnumConstructor(EnumVariantId),
}
Expand description
The type of a function call.
Variants§
BuiltinFunction(GlobalFunction)
Intrinsic(Intrinsic)
BuiltinValueMethod
BuiltinAssociatedFunction
AssociatedFunction
ValueMethod
TraitValueMethod
External
Pure(FunctionId)
TypeConstructor(TypeId)
EnumConstructor(EnumVariantId)
Implementations§
Source§impl CallType
impl CallType
pub fn function(&self) -> Option<FunctionId>
pub fn function_name(&self, db: &dyn AnalyzerDb) -> SmolStr
pub fn is_unsafe(&self, db: &dyn AnalyzerDb) -> bool
Trait Implementations§
impl Eq for CallType
impl StructuralPartialEq for CallType
Auto Trait Implementations§
impl Freeze for CallType
impl RefUnwindSafe for CallType
impl !Send for CallType
impl !Sync for CallType
impl Unpin for CallType
impl UnwindSafe for CallType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.