Trait mamba::check::name::TupleCallable
source · pub trait TupleCallable<T1, T2, T3> {
fn tuple(names: &[Name]) -> Self;
fn callable(args: &[Name], ret_ty: &Name) -> Self;
fn is_tuple(&self) -> T1;
fn is_callable(&self) -> T1;
fn elements(&self, pos: Position) -> TypeResult<T2>;
fn args(&self, pos: Position) -> TypeResult<T2>;
fn ret_ty(&self, pos: Position) -> TypeResult<T3>;
}