Skip to main content

Classification

Trait Classification 

Source
pub trait Classification {
    // Provided methods
    fn entity_type(
        &self,
        _cache: &mut SharedReferencesCache,
    ) -> Option<EntityType> { ... }
    fn entity_type_address(&self) -> Option<PointerAddress> { ... }
    fn tag(&self) -> Option<ValueTag> { ... }
    fn impls(&self) -> Vec<PointerAddress> { ... }
    fn classification(
        &self,
        cache: &mut SharedReferencesCache,
    ) -> ValueClassification { ... }
    fn unresolved_classification(&self) -> UnresolvedValueClassification { ... }
}

Provided Methods§

Source

fn entity_type(&self, _cache: &mut SharedReferencesCache) -> Option<EntityType>

Returns the DATEX EntityType of the native value if it has an entity type. For structural types, this will return None. The default implementation returns None, indicating that the value does not have an entity type.

Source

fn entity_type_address(&self) -> Option<PointerAddress>

Returns the PointerAddress of the entity type if it has one. The default implementation returns None, indicating that the value does not have an entity type address. It must be ensured that the entity type for the given address is already registered in the runtime.

Source

fn tag(&self) -> Option<ValueTag>

Returns a ValueTag if the value has a tag. The default implementation returns None, indicating that the value does not have a tag.

Source

fn impls(&self) -> Vec<PointerAddress>

Returns a list of PointerAddresses of the impls associated with the value. The default implementation returns an empty list, indicating that the value does not have any impls.

Source

fn classification( &self, cache: &mut SharedReferencesCache, ) -> ValueClassification

Returns the DATEX ValueClassification of the native value. This tries to resolve the entity type and tag, assuming at most one of them is present.

Source

fn unresolved_classification(&self) -> UnresolvedValueClassification

Returns the unresolved DATEX UnresolvedValueClassification of the native value. This does not try to resolve the entity, but instead returns the address of the entity type if it has one.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Classification for Duration

Source§

impl Classification for bool

Source§

impl Classification for f32

Source§

impl Classification for f64

Source§

impl Classification for i8

Source§

impl Classification for i16

Source§

impl Classification for i32

Source§

impl Classification for i64

Source§

impl Classification for i128

Source§

impl Classification for isize

Source§

impl Classification for u8

Source§

impl Classification for u16

Source§

impl Classification for u32

Source§

impl Classification for u64

Source§

impl Classification for u128

Source§

impl Classification for usize

Source§

impl<K, V> Classification for IndexMap<K, V, RandomState>
where K: DatexNativeBase + Eq + Hash + 'static, V: DatexNativeBase + 'static,

Source§

impl<T> Classification for Option<T>
where T: DatexNative + 'static,

Implementors§

Source§

impl Classification for AcceptAddress

Source§

impl Classification for BlockDirection

Source§

impl Classification for Boolean

Source§

impl Classification for Callable

Source§

impl Classification for ComHubMetadata

Source§

impl Classification for ComHubMetadataInterface

Source§

impl Classification for ComHubMetadataInterfaceSocket

Source§

impl Classification for ComInterfaceProperties

Source§

impl Classification for CoreValueWithClassification

Source§

impl Classification for Decimal

Source§

impl Classification for DisassemblerOptions

Source§

impl Classification for DynamicEndpointProperties

Source§

impl Classification for Endpoint

Source§

impl Classification for HTTPClientInterfaceSetupData

Source§

impl Classification for HTTPServerInterfaceSetupData

Source§

impl Classification for HeapStats

Source§

impl Classification for Instant

Source§

impl Classification for Integer

Source§

impl Classification for InterfaceDirection

Source§

impl Classification for InterfacePriority

Source§

impl Classification for List

Source§

impl Classification for LogLevel

Source§

impl Classification for LogMessage

Source§

impl Classification for Map

Source§

impl Classification for NativeCoreValue

Source§

impl Classification for NetworkTraceHop

Source§

impl Classification for NetworkTraceHopDirection

Source§

impl Classification for NetworkTraceHopSocket

Source§

impl Classification for NetworkTraceResult

Source§

impl Classification for RTCIceCandidateInitDX

Source§

impl Classification for RTCIceServerDX

Source§

impl Classification for RTCSdpTypeDX

Source§

impl Classification for RTCSessionDescriptionDX

Source§

impl Classification for Range

Source§

impl Classification for ReconnectionConfig

Source§

impl Classification for RuntimeConfig

Source§

impl Classification for RuntimeConfigInterface

Source§

impl Classification for RuntimeInfo

Source§

impl Classification for RuntimeStats

Source§

impl Classification for SerialClientInterfaceSetupData

Source§

impl Classification for String

Source§

impl Classification for TCPClientInterfaceSetupData

Source§

impl Classification for TCPServerInterfaceSetupData

Source§

impl Classification for TLSMode

Source§

impl Classification for Text

Source§

impl Classification for Type

Source§

impl Classification for TypedDecimal

Source§

impl Classification for TypedInteger

Source§

impl Classification for Value

Source§

impl Classification for ValueContainer

Source§

impl Classification for WebRTCInterfaceSetupData

Source§

impl Classification for WebRTCRoleDX

Source§

impl Classification for WebRTCSignalDX

Source§

impl Classification for WebSocketClientInterfaceSetupData

Source§

impl Classification for WebSocketServerInterfaceSetupData

Source§

impl<'a> Classification for BorrowedCoreValueWithClassification<'a>

Source§

impl<'a> Classification for BorrowedValue<'a>

Source§

impl<'a> Classification for BorrowedValueContainer<'a>

Source§

impl<T: DatexNative + GetDatexType> Classification for Box<T>

Source§

impl<T> Classification for Receiver<T>
where T: DatexNativeBase + 'static,

Source§

impl<T> Classification for Sender<T>
where T: DatexNativeBase + 'static,

Source§

impl<T> Classification for Vec<T>
where T: DatexNativeBase + 'static,