pub trait GetType {
    fn get_type(&self, context: &CompileContext) -> Result<Type, Error>;
    fn match_type(&self, context: &CompileContext, t: &Type) -> Result<(), Error>;
}

Required Methods§

Gets the type of self.

Errors

Some constructs can fail to determine type (inconsistent iterators).

Tries to see if self’s type matches t.

Errors

Raises an error if it doesn’t.

Implementors§