apollo/util

Types

Used when making custon filters to check the type of a value

pub type AnyType {
  IntT(Int)
  StringT(String)
  FloatT(Float)
  BoolT(Bool)
}

Constructors

  • IntT(Int)
  • StringT(String)
  • FloatT(Float)
  • BoolT(Bool)

Functions

pub fn to_err(b: Bool, err: String) -> Result(Nil, String)

Shorthand for converting a Boolean to a Result

Search Document