pub struct FunctionTypecheck {
pub general: Option<String>,
pub arguments: Vec<(usize, String)>,
pub return_type: VariableType,
}Expand description
函数类型检查结果
包含类型检查过程中发现的错误信息和推断的返回类型
Fields§
§general: Option<String>通用错误信息(如参数数量不匹配)
arguments: Vec<(usize, String)>参数错误列表:(参数索引, 错误信息)
return_type: VariableType推断的返回类型
Trait Implementations§
Source§impl Debug for FunctionTypecheck
impl Debug for FunctionTypecheck
Source§impl Default for FunctionTypecheck
impl Default for FunctionTypecheck
Source§fn default() -> FunctionTypecheck
fn default() -> FunctionTypecheck
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FunctionTypecheck
impl RefUnwindSafe for FunctionTypecheck
impl !Send for FunctionTypecheck
impl !Sync for FunctionTypecheck
impl Unpin for FunctionTypecheck
impl UnwindSafe for FunctionTypecheck
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