jitx/emodel-types¶
Package name: jitx/emodel-types
Summary¶
Data Types¶
UNKNOWN¶
A nonce type representing unknown numerical value in an EModel
NamedColor¶
Constructors¶
Function | Description |
---|---|
NamedColor | Constructor for defstruct NamedColor |
EModel¶
Functions¶
Function | Description |
---|---|
match? | |
value-string | |
add-unit-suffix |
ColorSpec¶
General Definitions¶
Function | Description |
---|---|
si-string | |
to-string-round | |
parse-si-string |
Variable | Description |
---|---|
UNKNOWN | The one value of this type |
Definitions¶
UNKNOWN¶
A nonce type representing unknown numerical value in an EModel
public deftype UNKNOWN <: Hashable & Equalable
NamedColor¶
public defstruct NamedColor <: ColorSpec
name: String
name: String
EModel¶
public deftype EModel <: Hashable & Equalable
Functions¶
match?¶
public defn match? (a:EModel, b:EModel)
value-string¶
public defn value-string (e:EModel|False, format-options:Set<String>) -> String|False
- Returns
String|False
add-unit-suffix¶
public defn add-unit-suffix (value:Double, e:EModel|False) -> String
- Returns
String
ColorSpec¶
public deftype ColorSpec <: Hashable & Equalable
General Definitions¶
si-string¶
public defn si-string (v:Double, unit:String)
to-string-round¶
public defn to-string-round (value:Double, precision:Int) -> String
- Returns
String
parse-si-string¶
public defn parse-si-string (s:String, unit:String) -> Double|False
- Returns
Double|False
UNKNOWN¶
The one value of this type
public val UNKNOWN
Related Packages¶
Forwarded by packages: jitx, jitx/emodels