FromString

trait FromString[a: Type]Source

A trait for types that can be constructed from strings.

Instances

instance FromString[Unit]Source
instance FromString[Bool]Source
instance FromString[Char]Source
instance FromString[Float32]Source
instance FromString[Float64]Source
instance FromString[BigDecimal]Source
instance FromString[Int8]Source
instance FromString[Int16]Source
instance FromString[Int32]Source
instance FromString[Int64]Source
instance FromString[BigInt]Source
instance FromString[String]Source

Signatures

def fromString(x: String): Option[a] with FromString[a] Source

Optionally returns the value associated with the given string s.