mote/toml
Types
pub type MaybeNumber {
Integer(Int)
Floating(Float)
Nan
Infinity
NegativeInfinity
}
Constructors
-
Integer(Int)
-
Floating(Float)
-
Nan
-
Infinity
-
NegativeInfinity
pub external type ReturnTerm
pub external type SemanticError
pub type TomlError {
Tokenize(Int)
Parse(Int)
Semantic(SemanticError)
BadReturn(ValidateLocation, ReturnTerm)
}
Constructors
-
Tokenize(Int)
-
Parse(Int)
-
Semantic(SemanticError)
-
BadReturn(ValidateLocation, ReturnTerm)
pub external type ValidateLocation
Functions
pub fn get(section: Map(BitString, Value), path: List(String)) -> Result(
Value,
GetError,
)
pub fn get_string(section: Map(BitString, Value), path: List(
String,
)) -> Result(String, GetError)