Trait uniffi::TypeId

pub trait TypeId<UT> {
    const TYPE_ID_META: MetadataBuffer;
}
Expand description

Reexport items from other uniffi creates Type ID metadata

This is used to build up more complex metadata. For example, the MetadataBuffer for function signatures includes a copy of this metadata for each argument and return type.

Required Associated Constants§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<K, V, UT> TypeId<UT> for HashMap<K, V>
where K: TypeId<UT> + Hash + Eq, V: TypeId<UT>,

§

impl<T, UT> TypeId<UT> for Arc<T>
where Arc<T>: FfiConverter<UT>, T: ?Sized,

§

impl<UT> TypeId<UT> for bool

§

impl<UT> TypeId<UT> for f32

§

impl<UT> TypeId<UT> for f64

§

impl<UT> TypeId<UT> for i8

§

impl<UT> TypeId<UT> for i16

§

impl<UT> TypeId<UT> for i32

§

impl<UT> TypeId<UT> for i64

§

impl<UT> TypeId<UT> for u8

§

impl<UT> TypeId<UT> for u16

§

impl<UT> TypeId<UT> for u32

§

impl<UT> TypeId<UT> for u64

§

impl<UT> TypeId<UT> for ()

§

impl<UT> TypeId<UT> for String

§

impl<UT> TypeId<UT> for SystemTime

§

impl<UT, T> TypeId<UT> for Vec<T>
where T: TypeId<UT>,

Implementors§

§

impl<UT> TypeId<UT> for Duration

§

impl<UT, R, E> TypeId<UT> for Result<R, E>
where R: TypeId<UT>, E: TypeId<UT>,

§

impl<UT, T> TypeId<UT> for Option<T>
where T: TypeId<UT>,