Type Alias TypedTest

Source
pub type TypedTest = Function<Rc<Type>, TypedExpr, TypedArgVia>;

Aliased Type§

pub struct TypedTest {
    pub arguments: Vec<ArgVia<TypedArg, TypedExpr>>,
    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<ArgVia<TypedArg, TypedExpr>>§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 TypedTest

Source

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