Trait stam::TypeInfo

source ·
pub trait TypeInfo: Sealed {
    // Required method
    fn typeinfo() -> Type;

    // Provided method
    fn temp_id_prefix() -> &'static str { ... }
}
Expand description

This trait provides some introspection on STAM data types. It is a sealed trait that can not be implemented.

Required Methods§

source

fn typeinfo() -> Type

Return the type (introspection).

Provided Methods§

source

fn temp_id_prefix() -> &'static str

Return the prefix for temporary identifiers of this type

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TypeInfo for Option<ResultTextSelection<'_>>

source§

impl<T> TypeInfo for Option<ResultItem<'_, T>>
where T: Storable,

Implementors§