pub enum VariantTypeId {
Show 27 variants Empty, Boolean, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Float, Double, String, DateTime, Guid, StatusCode, ByteString, XmlElement, QualifiedName, LocalizedText, NodeId, ExpandedNodeId, ExtensionObject, Variant, DataValue, Diagnostic, 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

Variant

DataValue

Diagnostic

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

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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

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.