Enum opcua_types::variant::VariantTypeId[][src]

pub enum VariantTypeId {
Show 24 variants Empty, Boolean, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Float, Double, String, DateTime, Guid, StatusCode, ByteString, XmlElement, QualifiedName, LocalizedText, NodeId, ExpandedNodeId, ExtensionObject, Array,
}
Expand description

The variant type id is the type of the variant but without its payload.

Variants

Empty
Boolean
SByte
Byte
Int16
UInt16
Int32
UInt32
Int64
UInt64
Float
Double
String
DateTime
Guid
StatusCode
ByteString
XmlElement
QualifiedName
LocalizedText
NodeId
ExpandedNodeId
ExtensionObject
Array

Implementations

Tests and returns true if the variant holds a numeric type

Returns a data precedence rank for scalar types, OPC UA part 4 table 119. This is used when operators are comparing values of differing types. The type with the highest precedence dictates how values are converted in order to be compared.

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

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

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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)

recently added

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.