logo
#[repr(C)]
pub enum VALUE_TYPE {
Show 23 variants T_UNDEFINED, T_NULL, T_BOOL, T_INT, T_FLOAT, T_STRING, T_DATE, T_CURRENCY, T_LENGTH, T_ARRAY, T_MAP, T_FUNCTION, T_BYTES, T_OBJECT, T_DOM_OBJECT, T_RESOURCE, T_RANGE, T_DURATION, T_ANGLE, T_COLOR, T_ENUM, T_ASSET, T_UNKNOWN,
}
Expand description

Type identifier of the value.

Variants

T_UNDEFINED

Just undefined, the data is zero, the unit can be UT_NOTHING.

T_NULL

Explicit null type, the rest fields are zero.

T_BOOL

Data is 1 or 0; units can be used but unknown.

T_INT

Data is an integer; units can be used but unknown.

T_FLOAT

Data is a double float; units can be used but unknown.

T_STRING

Data is a Sciter internal string, unit is [VALUE_UNIT_TYPE_STRING].

T_DATE

Data is FILETIME (64-bit value in 100ns since the unix epoch). No unit is stored but is_utc boolean is used during creation.

T_CURRENCY

Data is a 64-bit number, no units.

T_LENGTH

Data is a float (but can be constructed from an int), unit is [VALUE_UNIT_TYPE_LENGTH].

T_ARRAY

Sciter internal array, unit is [VALUE_UNIT_TYPE_ARRAY].

T_MAP

Sciter internal array of key-value pairs.

T_FUNCTION

Sciter internal function, holds its name and params.

T_BYTES

Sciter internal array of bytes.

T_OBJECT

Sciter internal object, unit is [VALUE_UNIT_TYPE_OBJECT].

T_DOM_OBJECT

Sciter internal object.

T_RESOURCE

Sciter-managed resource object.

T_RANGE

N..M range as a 32-bit integer pair, units are zero.

T_DURATION

Time duration as a float, in seconds or milliseconds (depends on the unit).

T_ANGLE

Angle radians as a float, unit is [VALUE_UNIT_TYPE_ANGLE].

T_COLOR

Color in ARGB format as a 32-bit number.

T_ENUM

Sciter internal array of value-name pairs.

T_ASSET

Sciter asset.

T_UNKNOWN

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.