Enum clarity_repl::clarity::types::signatures::FunctionType
source · [−]pub enum FunctionType {
Variadic(TypeSignature, TypeSignature),
Fixed(FixedFunction),
UnionArgs(Vec<TypeSignature>, TypeSignature),
ArithmeticVariadic,
ArithmeticUnary,
ArithmeticBinary,
ArithmeticComparison,
}
Variants
Variadic(TypeSignature, TypeSignature)
Fixed(FixedFunction)
UnionArgs(Vec<TypeSignature>, TypeSignature)
ArithmeticVariadic
ArithmeticUnary
ArithmeticBinary
ArithmeticComparison
Implementations
sourceimpl FunctionType
impl FunctionType
pub fn check_args<T: CostTracker>(
&self,
accounting: &mut T,
args: &[TypeSignature]
) -> CheckResult<TypeSignature>
pub fn check_args_by_allowing_trait_cast(
&self,
db: &mut AnalysisDatabase<'_>,
func_args: &[Value]
) -> CheckResult<TypeSignature>
Trait Implementations
sourceimpl Clone for FunctionType
impl Clone for FunctionType
sourcefn clone(&self) -> FunctionType
fn clone(&self) -> FunctionType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FunctionType
impl Debug for FunctionType
sourceimpl<'de> Deserialize<'de> for FunctionType
impl<'de> Deserialize<'de> for FunctionType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<FunctionType> for FunctionType
impl PartialEq<FunctionType> for FunctionType
sourcefn eq(&self, other: &FunctionType) -> bool
fn eq(&self, other: &FunctionType) -> bool
sourceimpl Serialize for FunctionType
impl Serialize for FunctionType
impl Eq for FunctionType
impl StructuralEq for FunctionType
impl StructuralPartialEq for FunctionType
Auto Trait Implementations
impl RefUnwindSafe for FunctionType
impl Send for FunctionType
impl Sync for FunctionType
impl Unpin for FunctionType
impl UnwindSafe for FunctionType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more