Trait HasType

Source
pub trait HasType: Debug {
    // Required method
    fn get_type(&self, state: &TypeState) -> Result<TypeVar>;
}

Required Methods§

Source

fn get_type(&self, state: &TypeState) -> Result<TypeVar>

Implementations on Foreign Types§

Source§

impl HasType for Loc<TypeVar>

Source§

fn get_type(&self, state: &TypeState) -> Result<TypeVar>

Source§

impl HasType for Loc<KnownType>

Source§

fn get_type(&self, _state: &TypeState) -> Result<TypeVar>

Source§

impl HasType for Loc<Expression>

Source§

fn get_type(&self, state: &TypeState) -> Result<TypeVar>

Source§

impl HasType for Loc<Pattern>

Source§

fn get_type(&self, state: &TypeState) -> Result<TypeVar>

Source§

impl HasType for NameID

Source§

fn get_type(&self, state: &TypeState) -> Result<TypeVar>

Source§

impl HasType for Expression

Source§

fn get_type(&self, state: &TypeState) -> Result<TypeVar>

Source§

impl HasType for Pattern

Source§

fn get_type(&self, state: &TypeState) -> Result<TypeVar>

Implementors§