Enum BindingExpressionArgumentType

#[repr(i32)]
pub enum BindingExpressionArgumentType {
Show 28 variants TemporaryRegister0 = 0, TemporaryRegister1 = 1, TemporaryRegister2 = 2, TemporaryRegister3 = 3, TemporaryRegister4 = 4, TemporaryRegister5 = 5, TemporaryRegister6 = 6, ConstantRegister0 = 256, ConstantRegister1 = 257, ConstantRegister2 = 258, ConstantRegister3 = 259, ConstantRegister4 = 260, ConstantRegister5 = 261, ConstantRegister6 = 262, SourceRegister0 = 512, SourceRegister1 = 513, SourceRegister2 = 514, SourceRegister3 = 515, SourceRegister4 = 516, SourceRegister5 = 517, SourceRegister6 = 518, DataSourceRegister0 = 768, DataSourceRegister1 = 769, DataSourceRegister2 = 770, DataSourceRegister3 = 771, DataSourceRegister4 = 772, DataSourceRegister5 = 773, DataSourceRegister6 = 774,
}
Expand description

Runtime expression validator argument type.

A bitmask is used to speed up access to register arrays and remove the need for division.

The encoding intentionally ensures only 16 bits are needed for the enumeration.

§Since

Kanzi 3.7.0

Variants§

§

TemporaryRegister0 = 0

Temporary registers: 0 - 255 Can be directly converted to integer to access temporary register by index.

§

TemporaryRegister1 = 1

Shorthand for temporary register index.

§

TemporaryRegister2 = 2

Shorthand for temporary register index.

§

TemporaryRegister3 = 3

Shorthand for temporary register index.

§

TemporaryRegister4 = 4

Shorthand for temporary register index.

§

TemporaryRegister5 = 5

Shorthand for temporary register index.

§

TemporaryRegister6 = 6

Shorthand for temporary register index.

§

ConstantRegister0 = 256

Constant registers: 256 - 511

§

ConstantRegister1 = 257

Shorthand for constant register index.

§

ConstantRegister2 = 258

Shorthand for constant register index.

§

ConstantRegister3 = 259

Shorthand for constant register index.

§

ConstantRegister4 = 260

Shorthand for constant register index.

§

ConstantRegister5 = 261

Shorthand for constant register index.

§

ConstantRegister6 = 262

Shorthand for constant register index.

§

SourceRegister0 = 512

Source registers: 512 - 767

§

SourceRegister1 = 513

Shorthand for source register index.

§

SourceRegister2 = 514

Shorthand for source register index.

§

SourceRegister3 = 515

Shorthand for source register index.

§

SourceRegister4 = 516

Shorthand for source register index.

§

SourceRegister5 = 517

Shorthand for source register index.

§

SourceRegister6 = 518

Shorthand for source register index.

§

DataSourceRegister0 = 768

Data source registers: 768 - 1023

§

DataSourceRegister1 = 769

Shorthand for data source register index.

§

DataSourceRegister2 = 770

Shorthand for data source register index.

§

DataSourceRegister3 = 771

Shorthand for data source register index.

§

DataSourceRegister4 = 772

Shorthand for data source register index.

§

DataSourceRegister5 = 773

Shorthand for data source register index.

§

DataSourceRegister6 = 774

Shorthand for data source register index.

Implementations§

Trait Implementations§

§

impl Clone for BindingExpressionArgumentType

§

fn clone(&self) -> BindingExpressionArgumentType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for BindingExpressionArgumentType

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for BindingExpressionArgumentType

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for BindingExpressionArgumentType

§

fn eq(&self, other: &BindingExpressionArgumentType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl VariantConstraint for BindingExpressionArgumentType

§

type DataArg<'a> = BindingExpressionArgumentType

Specifies the type of an argument that provides a value to Variant. Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more
§

type RetArg = BindingExpressionArgumentType

Specifies the type of the return value received from Variant. Generally, this type matches Self, except for Resource. Read more
§

fn as_arg( &self, ) -> <BindingExpressionArgumentType as VariantConstraint>::DataArg<'_>

Converts Self to a type accepted by Variant::create or Object::set_property.
§

impl Copy for BindingExpressionArgumentType

§

impl Eq for BindingExpressionArgumentType

§

impl PropertyTypeConstraint for BindingExpressionArgumentType

§

impl StructuralPartialEq for BindingExpressionArgumentType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AsAny for T
where T: 'static,

§

fn as_any(&self) -> &(dyn Any + 'static)

§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Inherits<T> for T

§

fn upcast(self) -> Base

§

fn upcast_ref(&self) -> &Base

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.