Type Alias TypedFunction

Source
pub type TypedFunction = Function<Rc<Type>, TypedExpr, TypedArg>;

Aliased Type§

pub struct TypedFunction {
    pub arguments: Vec<TypedArg>,
    pub body: TypedExpr,
    pub doc: Option<String>,
    pub location: Span,
    pub name: String,
    pub public: bool,
    pub return_annotation: Option<Annotation>,
    pub return_type: Rc<Type>,
    pub end_position: usize,
    pub on_test_failure: OnTestFailure,
}

Fields§

§arguments: Vec<TypedArg>§body: TypedExpr§doc: Option<String>§location: Span§name: String§public: bool§return_annotation: Option<Annotation>§return_type: Rc<Type>§end_position: usize§on_test_failure: OnTestFailure

Implementations§

Source§

impl TypedFunction

Source

pub fn find_node(&self, byte_index: usize) -> Option<Located<'_>>

Source

pub fn has_valid_purpose_name(&self) -> bool

Source

pub fn validator_arity(&self) -> usize

Trait Implementations§

Source§

impl From<Function<Rc<Type>, TypedExpr, ArgVia<TypedArg, TypedExpr>>> for TypedFunction

Source§

fn from(f: TypedTest) -> Self

Converts to this type from the input type.