TypedWafObject

Trait TypedWafObject 

Source
pub trait TypedWafObject: AsRawMutObject {
    const TYPE: WafObjectType;
}
Expand description

This trait is implemented by type-safe interfaces to the WafObject, with one implementation for each WafObjectType.

Required Associated Constants§

Source

const TYPE: WafObjectType

The associated WafObjectType constant corresponding to the typed object’s type discriminator.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl TypedWafObject for WafArray

Source§

const TYPE: WafObjectType = WafObjectType::Array

Source§

impl TypedWafObject for WafBool

Source§

const TYPE: WafObjectType = WafObjectType::Bool

Source§

impl TypedWafObject for WafFloat

Source§

const TYPE: WafObjectType = WafObjectType::Float

Source§

impl TypedWafObject for WafInvalid

Source§

const TYPE: WafObjectType = WafObjectType::Invalid

Source§

impl TypedWafObject for WafMap

Source§

const TYPE: WafObjectType = WafObjectType::Map

Source§

impl TypedWafObject for WafNull

Source§

const TYPE: WafObjectType = WafObjectType::Null

Source§

impl TypedWafObject for WafSigned

Source§

const TYPE: WafObjectType = WafObjectType::Signed

Source§

impl TypedWafObject for WafString

Source§

const TYPE: WafObjectType = WafObjectType::String

Source§

impl TypedWafObject for WafUnsigned

Source§

const TYPE: WafObjectType = WafObjectType::Unsigned