glatch

Types

pub type MatchedType(x) {
  IsInt(Int)
  IsString(String)
  IsBool(Bool)
  IsFloat(Float)
  IsList(MatchedType(x))
  IsOption(Option(MatchedType(x)))
  IsResult(Result(MatchedType(x), MatchedType(x)))
  IsDict(MatchedType(x), MatchedType(x))
  IsNotFound
  IsEmpty
}

Constructors

  • IsInt(Int)
  • IsString(String)
  • IsBool(Bool)
  • IsFloat(Float)
  • IsList(MatchedType(x))
  • IsOption(Option(MatchedType(x)))
  • IsResult(Result(MatchedType(x), MatchedType(x)))
  • IsDict(MatchedType(x), MatchedType(x))
  • IsNotFound
  • IsEmpty

Functions

pub fn get_type(item: a) -> MatchedType(b)
Search Document