Enum sciter::value::VALUE_TYPE
source · [−]#[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
sourceimpl Clone for VALUE_TYPE
impl Clone for VALUE_TYPE
sourcefn clone(&self) -> VALUE_TYPE
fn clone(&self) -> VALUE_TYPE
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VALUE_TYPE
impl Debug for VALUE_TYPE
sourceimpl Default for VALUE_TYPE
impl Default for VALUE_TYPE
sourceimpl PartialEq<VALUE_TYPE> for VALUE_TYPE
impl PartialEq<VALUE_TYPE> for VALUE_TYPE
sourceimpl PartialOrd<VALUE_TYPE> for VALUE_TYPE
impl PartialOrd<VALUE_TYPE> for VALUE_TYPE
sourcefn partial_cmp(&self, other: &VALUE_TYPE) -> Option<Ordering>
fn partial_cmp(&self, other: &VALUE_TYPE) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for VALUE_TYPE
impl StructuralPartialEq for VALUE_TYPE
Auto Trait Implementations
impl RefUnwindSafe for VALUE_TYPE
impl Send for VALUE_TYPE
impl Sync for VALUE_TYPE
impl Unpin for VALUE_TYPE
impl UnwindSafe for VALUE_TYPE
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more