pub enum Const {
CString(String),
CRegExp(String, bool, bool),
CNum(f64),
CInt(i32),
CBool(bool),
CNull,
CUndefined,
}Variants
CString | A UTF-8 string, such as "Hello, world"
|
CRegExp | A regular expression, such as /where('s| is) [wW]ally/
|
CNum | A 64-bit floating-point number, such as 3.1415
|
CInt | A 32-bit integer, such as 42
|
CBool | A boolean, which is either true or false and is used to check if criteria are met
|
CNull | The null value, which represents a non-existant value
|
CUndefined | The undefined value, which represents a field or index that doesn't exist
|
Trait Implementations
Derived Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ↑
- Move up in search results
- ↓
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).