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))
  IsTuple0
  IsTuple1(MatchedType(x))
  IsTuple2(MatchedType(x), MatchedType(x))
  IsTuple3(MatchedType(x), MatchedType(x), MatchedType(x))
  IsTuple4(
    MatchedType(x),
    MatchedType(x),
    MatchedType(x),
    MatchedType(x),
  )
  IsTuple5(
    MatchedType(x),
    MatchedType(x),
    MatchedType(x),
    MatchedType(x),
    MatchedType(x),
  )
  IsTuple6(
    MatchedType(x),
    MatchedType(x),
    MatchedType(x),
    MatchedType(x),
    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))
  • IsTuple0
  • IsTuple1(MatchedType(x))
  • IsTuple2(MatchedType(x), MatchedType(x))
  • IsTuple3(MatchedType(x), MatchedType(x), MatchedType(x))
  • IsTuple4(
      MatchedType(x),
      MatchedType(x),
      MatchedType(x),
      MatchedType(x),
    )
  • IsTuple5(
      MatchedType(x),
      MatchedType(x),
      MatchedType(x),
      MatchedType(x),
      MatchedType(x),
    )
  • IsTuple6(
      MatchedType(x),
      MatchedType(x),
      MatchedType(x),
      MatchedType(x),
      MatchedType(x),
      MatchedType(x),
    )
  • IsNotFound
  • IsEmpty

Functions

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