pub trait DictionaryKey: NativeType + TryInto<usize> + TryFrom<usize> {
    const KEY_TYPE: IntegerType;

    unsafe fn as_usize(self) -> usize { ... }
}
Expand description

Trait denoting NativeTypes that can be used as keys of a dictionary.

Required Associated Constants

The corresponding IntegerType of this key

Provided Methods

Represents this key as a usize.

Safety

The caller must have checked that the value can be casted to usize.

Implementations on Foreign Types

Implementors