FFIMapConversion

Trait FFIMapConversion 

Source
pub trait FFIMapConversion {
    type Key;
    type Value;

    // Required methods
    fn new() -> Self;
    fn insert(&mut self, key: Self::Key, value: Self::Value);
}

Required Associated Types§

Required Methods§

Source

fn new() -> Self

Source

fn insert(&mut self, key: Self::Key, value: Self::Value)

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.

Implementations on Foreign Types§

Source§

impl<K: Ord, V> FFIMapConversion for BTreeMap<K, V>

Source§

type Key = K

Source§

type Value = V

Source§

fn new() -> Self

Source§

fn insert(&mut self, key: K, value: V)

Source§

impl<K: Hash + Eq, V> FFIMapConversion for HashMap<K, V>

Source§

type Key = K

Source§

type Value = V

Source§

fn new() -> Self

Source§

fn insert(&mut self, key: K, value: V)

Implementors§